Fixes inaccurate save / restore in Fling script (#7811)

This commit is contained in:
Alex 2025-09-28 17:39:08 +02:00 committed by GitHub
parent a4ecd7338b
commit e9911d4d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -792,13 +792,13 @@ BattleScript_FlingLightBall:
goto BattleScript_FlingEnd
BattleScript_FlingMentalHerb:
curecertainstatuses
savetarget
saveattacker
copybyte gBattlerAttacker, gBattlerTarget
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
printfromtable gMentalHerbCureStringIds
waitmessage B_WAIT_TIME_LONG
updatestatusicon BS_ATTACKER
restoretarget
restoreattacker
goto BattleScript_FlingEnd
BattleScript_FlingPoisonBarb:
seteffectsecondary BS_ATTACKER, BS_TARGET, MOVE_EFFECT_POISON