prevent static wild mon NPCs from refusing to hide after battle

This commit is contained in:
jojobear13 2024-01-14 23:57:43 -06:00
parent dd71684561
commit 7d13d34093
2 changed files with 14 additions and 11 deletions

View file

@ -6981,6 +6981,9 @@ PlayMoveAnimation:
predef_jump MoveAnimation
InitBattle::
xor a
ld [wWasTrainerBattle], a ;Remember to clear wWasTrainerBattle from any previous battles,
;because this new battle could be a static wild encounter.
ld a, [wCurOpponent]
and a
jr z, DetermineWildOpponent