Fixed actually checking for Sheer Cold instead of affecting all OHKO moves

This commit is contained in:
Eduardo Quezada D'Ottone 2022-02-13 01:13:44 -03:00
parent dde65d5cea
commit 5e9767e067

View file

@ -10729,7 +10729,7 @@ static void Cmd_tryKO(void)
{
u16 odds = gBattleMoves[gCurrentMove].accuracy + (gBattleMons[gBattlerAttacker].level - gBattleMons[gBattlerTarget].level);
#if B_SHEER_COLD_ACC >= GEN_7
if (!IS_BATTLER_OF_TYPE(gBattlerAttacker, TYPE_ICE))
if (gCurrentMove == MOVE_SHEER_COLD && !IS_BATTLER_OF_TYPE(gBattlerAttacker, TYPE_ICE))
odds -= 10;
#endif
if (Random() % 100 + 1 < odds && gBattleMons[gBattlerAttacker].level >= gBattleMons[gBattlerTarget].level)