fix run away check in TryRunFromBattle

This commit is contained in:
ghoulslash 2021-10-30 12:06:02 -04:00
parent bcf272353c
commit ae0260fa62

View File

@ -627,7 +627,7 @@ bool8 TryRunFromBattle(u8 battler)
effect++;
}
#endif
else if (gBattleMons[battler].ability == ABILITY_RUN_AWAY)
else if (GetBattlerAbility(battler) == ABILITY_RUN_AWAY)
{
if (InBattlePyramid())
{