Prevent ground pound from attacking until they're moving downward

This commit is contained in:
MysterD 2020-09-08 15:01:31 -07:00
parent f0f5b5f10a
commit ca9e0da2a1
1 changed files with 3 additions and 0 deletions

View File

@ -1252,7 +1252,10 @@ u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object
} }
} }
// determine if ground pound should be ignored
if (m->action == ACT_GROUND_POUND) { if (m->action == ACT_GROUND_POUND) {
// not moving down yet?
if (m->actionState == 0) { return FALSE; }
m2->squishTimer = max(m2->squishTimer, 20); m2->squishTimer = max(m2->squishTimer, 20);
} }