Remove usage of gBattlerTarget for MirrorHerb/Opportunist (#8033)

This commit is contained in:
Alex 2025-10-25 13:52:40 +02:00 committed by GitHub
parent 65244cbeb4
commit 7ebb939cbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -8023,7 +8023,7 @@ BattleScript_OpportunistCopyStatChange::
call BattleScript_AbilityPopUpScripting
BattleScript_OpportunistStartCopyStats:
copyfoesstatincrease BS_SCRIPTING, BattleScript_OpportunistCopyStatChangeEnd
statbuffchange BS_TARGET, STAT_CHANGE_ALLOW_PTR, BattleScript_OpportunistCopyStatChangeEnd
statbuffchange BS_SCRIPTING, STAT_CHANGE_ALLOW_PTR, BattleScript_OpportunistCopyStatChangeEnd
printfromtable gStatUpStringIds
waitmessage B_WAIT_TIME_LONG
setbyte sSTAT_ANIM_PLAYED, TRUE @ play stat change animation only once

View File

@ -15597,7 +15597,6 @@ void BS_CopyFoesStatIncrease(void)
SET_STATCHANGER(stat + 1, gQueuedStatBoosts[battler].statChanges[stat], FALSE);
gQueuedStatBoosts[battler].stats &= ~(1 << stat);
gBattlerTarget = battler;
gBattlescriptCurrInstr = cmd->nextInstr;
return;
}