Fixed logic to allow Shadow Tag to work (#3549)
* Fixed logic to allow Shadow Tag to work * Fixed which boolean is changed * Reverted boolean change and updated B_SHADOW_TAG_ESCAPE comparison --------- Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
This commit is contained in:
parent
85e75a72c6
commit
8981897c9b
1 changed files with 1 additions and 1 deletions
|
@ -6205,7 +6205,7 @@ u32 IsAbilityPreventingEscape(u32 battler)
|
|||
if (B_GHOSTS_ESCAPE >= GEN_6 && IS_BATTLER_OF_TYPE(battler, TYPE_GHOST))
|
||||
return 0;
|
||||
if ((id = IsAbilityOnOpposingSide(battler, ABILITY_SHADOW_TAG))
|
||||
&& (B_SHADOW_TAG_ESCAPE < GEN_4 && GetBattlerAbility(battler) != ABILITY_SHADOW_TAG))
|
||||
&& (B_SHADOW_TAG_ESCAPE >= GEN_4 && GetBattlerAbility(battler) != ABILITY_SHADOW_TAG))
|
||||
return id;
|
||||
if ((id = IsAbilityOnOpposingSide(battler, ABILITY_ARENA_TRAP)) && IsBattlerGrounded(battler))
|
||||
return id;
|
||||
|
|
Loading…
Reference in a new issue