Remove usage of gBattlerTarget for MirrorHerb/Opportunist (#8033)
This commit is contained in:
parent
65244cbeb4
commit
7ebb939cbc
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user