Made talking to defeated trainers follower-safe.
This commit is contained in:
parent
7edb7bbc23
commit
37ca4a6ceb
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ EventScript_TrainerApproach::
|
||||||
EventScript_TryDoNormalTrainerBattle::
|
EventScript_TryDoNormalTrainerBattle::
|
||||||
lock
|
lock
|
||||||
faceplayer
|
faceplayer
|
||||||
|
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
specialvar VAR_RESULT, GetTrainerFlag
|
specialvar VAR_RESULT, GetTrainerFlag
|
||||||
|
@ -44,6 +45,7 @@ EventScript_NoDoubleTrainerBattle::
|
||||||
gotopostbattlescript
|
gotopostbattlescript
|
||||||
|
|
||||||
EventScript_DoNoIntroTrainerBattle::
|
EventScript_DoNoIntroTrainerBattle::
|
||||||
|
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
special PlayTrainerEncounterMusic
|
special PlayTrainerEncounterMusic
|
||||||
|
@ -93,6 +95,7 @@ EventScript_NotEnoughMonsForDoubleRematchBattle::
|
||||||
end
|
end
|
||||||
|
|
||||||
EventScript_RevealTrainer::
|
EventScript_RevealTrainer::
|
||||||
|
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
|
||||||
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
applymovement VAR_LAST_TALKED, Movement_RevealTrainer
|
||||||
waitmovement 0
|
waitmovement 0
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue