Fix Hit Escape moves giving Exp to the mon that switches in (#5844)
This commit is contained in:
parent
5b05e7913c
commit
c3133193e2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue