fix: Dig in Sealed Chamber no longer freezes follower. Fixed #5482 rhh

This commit is contained in:
Ariel A
2024-10-11 13:45:40 -04:00
parent ef462d9d9b
commit d80190fe10
4 changed files with 24 additions and 3 deletions

View File

@@ -376,6 +376,24 @@ EventScript_EndSurface::
releaseall
end
EventScript_DigCommon:
callfunc ScrFunc_IsFollowerFieldMoveUser
.2byte VAR_0x8004
setfieldeffectargument 3, VAR_0x8004 @ skip pose if true
dofieldeffect FLDEFF_USE_DIG
waitstate
EventScript_DigSealedChamber:: @ fallthrough
setflag FLAG_SAFE_FOLLOWER_MOVEMENT
call_if_eq VAR_0x8004, TRUE, EventScript_FollowerFieldMove
callnative DoBrailleDigEffect
releaseall
end
@ Use Dig from party menu
EventScript_UseDig::
lockall
goto EventScript_DigCommon
Text_CantDive:
.string "The sea is deep here. A POKéMON\n"
.string "may be able to go underwater.$"