From 2a2c3266a75d7ecc171ece1d983f87cf76739049 Mon Sep 17 00:00:00 2001 From: Sunk <69110309+Sunketchupm@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:20:06 -0400 Subject: [PATCH] Prevent trades against dives with slidekicks --- src/game/interaction.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/interaction.c b/src/game/interaction.c index 77a9a9787..d2a0dc236 100644 --- a/src/game/interaction.c +++ b/src/game/interaction.c @@ -1472,6 +1472,7 @@ u32 interact_player_pvp(struct MarioState* attacker, struct MarioState* victim) // if the victim is going faster, do not attack // However if the victim is diving and the attacker is slidekicking, do not check speed + if (attacker->action == ACT_DIVE && cVictim->action == ACT_SLIDE_KICK) { return FALSE; } // Make slidekicks immune to dives altogether if (!(attacker->action == ACT_SLIDE_KICK && cVictim->action == ACT_DIVE) && vec3f_length(cVictim->vel) > vec3f_length(attacker->vel)) { return FALSE; } }