Skip to content

Commit

Permalink
Fix Hit Escape moves giving Exp to the mon that switches in (#5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
kittenchilly authored Dec 21, 2024
1 parent 5b05e79 commit c313319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/battle_scripts_1.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c313319

Please sign in to comment.