mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 12:44:18 +01:00
Ghost Escape config AI fix
This commit is contained in:
parent
9d1c0a7597
commit
d87610a1e0
@ -606,7 +606,7 @@ bool32 AtMaxHp(u8 battlerId)
|
||||
bool32 IsBattlerTrapped(u8 battler, bool8 checkSwitch)
|
||||
{
|
||||
u8 holdEffect = AI_DATA->holdEffects[battler];
|
||||
if (IS_BATTLER_OF_TYPE(battler, TYPE_GHOST)
|
||||
if ((B_GHOSTS_ESCAPE >= GEN_6 && IS_BATTLER_OF_TYPE(battler, TYPE_GHOST))
|
||||
|| (checkSwitch && holdEffect == HOLD_EFFECT_SHED_SHELL)
|
||||
|| (!checkSwitch && GetBattlerAbility(battler) == ABILITY_RUN_AWAY)
|
||||
|| (!checkSwitch && holdEffect == HOLD_EFFECT_CAN_ALWAYS_RUN))
|
||||
|
Loading…
Reference in New Issue
Block a user