Cotton down use jumpifabsent (#7318)

Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
ghoulslash 2025-07-11 03:43:14 -04:00 committed by GitHub
parent 809379797e
commit c7b2c771e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6913,7 +6913,7 @@ BattleScript_CottonDownActivates::
swapattackerwithtarget
setbyte gBattlerTarget, 0
BattleScript_CottonDownLoop:
jumpiffainted BS_TARGET, TRUE, BattleScript_CottonDownLoopIncrement
jumpifabsent BS_TARGET, BattleScript_CottonDownLoopIncrement
setstatchanger STAT_SPEED, 1, TRUE
jumpifbyteequal gBattlerTarget, gEffectBattler, BattleScript_CottonDownLoopIncrement
statbuffchange STAT_CHANGE_NOT_PROTECT_AFFECTED | STAT_CHANGE_ALLOW_PTR, BattleScript_CottonDownLoopIncrement