Added BUGFIX for groundEffectsOnMove when the player stops Surfing

This commit is contained in:
pkmnsnfrn 2024-04-04 16:17:48 -04:00
parent f19747d6cc
commit 7ee921e9da

View file

@ -1663,6 +1663,10 @@ static void Task_WaitStopSurfing(u8 taskId)
gPlayerAvatar.preventStep = FALSE;
UnlockPlayerFieldControls();
DestroySprite(&gSprites[playerObjEvent->fieldEffectSpriteId]);
#ifdef BUGFIX
// If this is not defined but the player steps into grass from surfing, they will appear over the grass instead of in the grass.
playerObjEvent->triggerGroundEffectsOnMove = TRUE;
#endif
DestroyTask(taskId);
}
}