fix cotton down overwriting gBattlerAttacker (#3783)
Co-authored-by: ghoulslash <pokevoyager0@gmail.com> Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
This commit is contained in:
parent
37f19ed39e
commit
5cc54f5c96
1 changed files with 2 additions and 0 deletions
|
@ -8016,6 +8016,7 @@ BattleScript_IllusionOff::
|
|||
return
|
||||
|
||||
BattleScript_CottonDownActivates::
|
||||
copybyte sSAVED_BATTLER, gBattlerAttacker
|
||||
showabilitypopup BS_TARGET
|
||||
pause B_WAIT_TIME_LONG
|
||||
destroyabilitypopup
|
||||
|
@ -8040,6 +8041,7 @@ BattleScript_CottonDownLoopIncrement:
|
|||
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_CottonDownLoop
|
||||
BattleScript_CottonDownReturn:
|
||||
swapattackerwithtarget
|
||||
copybyte gBattlerAttacker, sSAVED_BATTLER
|
||||
return
|
||||
|
||||
BattleScript_AnticipationActivates::
|
||||
|
|
Loading…
Reference in a new issue