Merge pull request #1569 from LOuroboros/cotton_down

Fixed Cotton Down
This commit is contained in:
ghoulslash 2021-07-13 11:06:59 -06:00 committed by GitHub
commit a29c9f9339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6258,6 +6258,8 @@ BattleScript_CottonDownActivates::
savetarget
setbyte gBattlerTarget, 0
BattleScript_CottonDownLoop:
getbattlerfainted BS_TARGET
jumpifbyte CMP_EQUAL, gBattleCommunication, TRUE, BattleScript_CottonDownLoopIncrement
setstatchanger STAT_SPEED, 1, TRUE
jumpifbyteequal gBattlerTarget, gEffectBattler, BattleScript_CottonDownLoopIncrement
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED, BattleScript_CottonDownTargetSpeedCantGoLower