mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-13 23:10:00 -05:00
Added check in IsRunningFromBattleImpossible.
This commit is contained in:
parent
773c773bac
commit
d4eaa73292
|
|
@ -3705,6 +3705,10 @@ u8 IsRunningFromBattleImpossible(void)
|
|||
|
||||
if (holdEffect == HOLD_EFFECT_CAN_ALWAYS_RUN)
|
||||
return 0;
|
||||
#if B_GHOSTS_ESCAPE >= GEN_6
|
||||
if (IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_GHOST))
|
||||
return 0;
|
||||
#endif
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_LINK)
|
||||
return 0;
|
||||
if (GetBattlerAbility(gActiveBattler) == ABILITY_RUN_AWAY)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user