This commit is contained in:
Bassoonian 2023-11-20 19:33:06 +01:00 committed by GitHub
parent 508332a93f
commit c9c0827ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6099,7 +6099,7 @@ u32 AbilityBattleEffects(u32 caseID, u32 battler, u32 ability, u32 special, u32
break;
}
if (effect && gLastUsedAbility != 0xFF)
if (effect && gLastUsedAbility != 0xFFFF)
RecordAbilityBattle(battler, gLastUsedAbility);
if (effect && caseID <= ABILITYEFFECT_MOVE_END)
gBattlerAbility = battler;