Skip to content

Commit

Permalink
forgot abilityShield check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine committed Jul 26, 2024
1 parent dfd63fd commit 5dd10a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5dd10a4

Please sign in to comment.