Ghosts can now escape any wild battle

This commit is contained in:
Eduardo Quezada D'Ottone 2021-10-23 11:41:31 -03:00
parent 3b746de1d4
commit 8bdcbb856d

View file

@ -621,6 +621,12 @@ bool8 TryRunFromBattle(u8 battler)
gProtectStructs[battler].fleeFlag = 1;
effect++;
}
#if B_GHOSTS_ESCAPE >= GEN_6
else if (IS_BATTLER_OF_TYPE(battler, TYPE_GHOST))
{
effect++;
}
#endif
else if (gBattleMons[battler].ability == ABILITY_RUN_AWAY)
{
if (InBattlePyramid())