Merge pull request #2364 from ghoulslash/be/trace

Trace records target ability
This commit is contained in:
Eduardo Quezada D'Ottone 2022-09-27 08:00:27 -03:00 committed by GitHub
commit 757ed2ebd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5939,6 +5939,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
}
gBattleResources->flags->flags[i] &= ~RESOURCE_FLAG_TRACED;
gBattleStruct->tracedAbility[i] = gLastUsedAbility = gBattleMons[gActiveBattler].ability;
RecordAbilityBattle(gActiveBattler, gLastUsedAbility); // Record the opposing battler has this ability
battler = gBattlerAbility = gBattleScripting.battler = i;
PREPARE_MON_NICK_WITH_PREFIX_BUFFER(gBattleTextBuff1, gActiveBattler, gBattlerPartyIndexes[gActiveBattler])