mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-25 03:15:44 -05:00
feat: improved follower handling during scripted movements
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "mystery_gift.h"
|
||||
#include "util.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "constants/flags.h"
|
||||
#include "constants/map_scripts.h"
|
||||
|
||||
#define RAM_SCRIPT_MAGIC 51
|
||||
@@ -243,6 +244,8 @@ void ScriptContext_SetupScript(const u8 *ptr)
|
||||
InitScriptContext(&sGlobalScriptContext, gScriptCmdTable, gScriptCmdTableEnd);
|
||||
SetupBytecodeScript(&sGlobalScriptContext, ptr);
|
||||
LockPlayerFieldControls();
|
||||
if (OW_MON_SCRIPT_MOVEMENT)
|
||||
FlagSet(FLAG_SAFE_FOLLOWER_MOVEMENT);
|
||||
sGlobalScriptContextStatus = CONTEXT_RUNNING;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user