Prevent ground pound from attacking until they're moving downward
This commit is contained in:
parent
f0f5b5f10a
commit
ca9e0da2a1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue