Fixed specific fly/door glitch

Before, if the player stepped out of a door and then immediately flew, the follower would not appear after landing until the player reloaded the map. This fixes that.
This commit is contained in:
W1serV1ser committed 2023-03-28 23:30:10 -07:00
1 parent 32c644ee92
commit 3c8ba61913
1 file changed
+10 -2
+10 -2
View File
@@ -1370,8 +1370,16 @@ static void Task_UseFly(u8 taskId)
gFieldEffectArguments[0] = 0;
FieldEffectStart(FLDEFF_USE_FLY);
FollowerIntoPokeball();
if (gSaveBlock2Ptr->follower.inProgress)
{
// In case the player just exited a building and the follower has not exited the building
gSaveBlock2Ptr->follower.comeOutDoorStairs = 0;
gSaveBlock2Ptr->follower.warpEnd = 0;
FollowerIntoPokeball();
}
task->data[0]++;
}