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:
ghoulslash 2023-12-24 17:19:59 -05:00 committed by GitHub
parent 37f19ed39e
commit 5cc54f5c96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8016,6 +8016,7 @@ BattleScript_IllusionOff::
return return
BattleScript_CottonDownActivates:: BattleScript_CottonDownActivates::
copybyte sSAVED_BATTLER, gBattlerAttacker
showabilitypopup BS_TARGET showabilitypopup BS_TARGET
pause B_WAIT_TIME_LONG pause B_WAIT_TIME_LONG
destroyabilitypopup destroyabilitypopup
@ -8040,6 +8041,7 @@ BattleScript_CottonDownLoopIncrement:
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_CottonDownLoop jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_CottonDownLoop
BattleScript_CottonDownReturn: BattleScript_CottonDownReturn:
swapattackerwithtarget swapattackerwithtarget
copybyte gBattlerAttacker, sSAVED_BATTLER
return return
BattleScript_AnticipationActivates:: BattleScript_AnticipationActivates::