mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-29 07:23:01 +00:00
Prevent ground pound from attacking until they're moving downward
This commit is contained in:
parent
a2fe4f80a7
commit
ef6ec31075
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
// not moving down yet?
|
||||
if (m->actionState == 0) { return FALSE; }
|
||||
m2->squishTimer = max(m2->squishTimer, 20);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue