From 9b74414935f09b92ae24397a99672f96bced5ee8 Mon Sep 17 00:00:00 2001
From: ghoulslash <41651341+ghoulslash@users.noreply.github.com>
Date: Thu, 23 Jul 2020 22:52:17 -0600
Subject: [PATCH] Created Surfing Dismount Ground Effects (markdown)
---
Surfing-Dismount-Ground-Effects.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 Surfing-Dismount-Ground-Effects.md
diff --git a/Surfing-Dismount-Ground-Effects.md b/Surfing-Dismount-Ground-Effects.md
new file mode 100644
index 0000000..d292e4e
--- /dev/null
+++ b/Surfing-Dismount-Ground-Effects.md
@@ -0,0 +1,16 @@
+### Fix Surfing Dismount Ground Effects Bug
+
+In vanilla emerald, the ground effects are not updated at the end of the surf dismount code. So if you dismount into tall grass, for example, you will appear over the grass. This is subtle but easily fixable so why not do so for consistency!
+
+**Before** **After**
+
+
+
+
+This fix is very simple. Open [src/field_player_avatar.c](../blob/master/src/field_player_avatar.c) and find the function `Task_WaitStopSurfing`. Before the line `DestroyTask(taskId)`, add the following:
+```c
+playerObjEvent->triggerGroundEffectsOnMove = TRUE;
+MovementType_Player(&gSprites[gPlayerAvatar.spriteId]);
+```
+
+That's it!
\ No newline at end of file