forgot abilityShield check
This commit is contained in:
parent
dfd63fd34f
commit
5dd10a4af1
1 changed files with 1 additions and 1 deletions
|
@ -6239,7 +6239,7 @@ u32 GetBattlerAbility(u32 battler)
|
|||
&& gBattleMons[battler].ability == ABILITY_COMATOSE)
|
||||
return ABILITY_NONE;
|
||||
|
||||
if (CanBreakThroughAbility(gBattlerAttacker, battler, gBattleMons[gBattlerAttacker].ability))
|
||||
if (noAbilityShield && CanBreakThroughAbility(gBattlerAttacker, battler, gBattleMons[gBattlerAttacker].ability))
|
||||
return ABILITY_NONE;
|
||||
|
||||
return gBattleMons[battler].ability;
|
||||
|
|
Loading…
Reference in a new issue