Fix Hit Escape moves giving Exp to the mon that switches in (#5844)

This commit is contained in:
kittenchilly 2024-12-21 03:30:25 -06:00 committed by GitHub
parent 5b05e7913c
commit c3133193e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2790,6 +2790,10 @@ BattleScript_EffectHitEscape::
jumpifbattleend BattleScript_HitEscapeEnd
jumpifbyte CMP_NOT_EQUAL, gBattleOutcome, 0, BattleScript_HitEscapeEnd
jumpifemergencyexited BS_TARGET, BattleScript_HitEscapeEnd
jumpiffainted BS_TARGET, FALSE, BattleScript_HitEscapeSwitch
setbyte sGIVEEXP_STATE, 0
getexp BS_TARGET
BattleScript_HitEscapeSwitch:
goto BattleScript_MoveSwitch
BattleScript_HitEscapeEnd:
end