mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-27 21:20:50 -05:00
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:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user