mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-28 12:57:19 -05:00
Fixed bug with applymovement not hiding followers after a battle.
This commit is contained in:
@@ -10,9 +10,10 @@ EventScript_TrainerApproach::
|
||||
EventScript_TryDoNormalTrainerBattle::
|
||||
lock
|
||||
faceplayer
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||
waitmovement 0
|
||||
clearflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
specialvar VAR_RESULT, GetTrainerFlag
|
||||
goto_if_ne VAR_RESULT, FALSE, EventScript_NoNormalTrainerBattle
|
||||
special PlayTrainerEncounterMusic
|
||||
@@ -45,9 +46,10 @@ EventScript_NoDoubleTrainerBattle::
|
||||
gotopostbattlescript
|
||||
|
||||
EventScript_DoNoIntroTrainerBattle::
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||
waitmovement 0
|
||||
clearflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
special PlayTrainerEncounterMusic
|
||||
dotrainerbattle
|
||||
gotopostbattlescript
|
||||
@@ -95,9 +97,10 @@ EventScript_NotEnoughMonsForDoubleRematchBattle::
|
||||
end
|
||||
|
||||
EventScript_RevealTrainer::
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||
waitmovement 0
|
||||
clearflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||
return
|
||||
|
||||
Movement_RevealTrainer:
|
||||
|
||||
Reference in New Issue
Block a user