Fix interactions (#868)

* Fix interactions again

* Peachy's suggestion
This commit is contained in:
Sunk 2025-06-24 16:16:35 -04:00 committed by GitHub
parent 9acb632b8e
commit 90af8dfb64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,8 +245,10 @@ u32 determine_interaction(struct MarioState *m, struct Object *o) {
}
// Fast attack
if (m->forwardVel <= -26.0f || 26.0f <= m->forwardVel) {
return INT_FAST_ATTACK_OR_SHELL;
if (!(action == ACT_PUNCHING || action == ACT_MOVE_PUNCHING || action == ACT_JUMP_KICK)) {
if (m->forwardVel <= -26.0f || 26.0f <= m->forwardVel) {
return INT_FAST_ATTACK_OR_SHELL;
}
}
}