fix lingering kick pvp interaction (#1202)

This commit is contained in:
Blockyyy 2026-04-22 03:33:30 +02:00 committed by GitHub
parent 45bc3062be
commit 754d822c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1516,7 +1516,7 @@ u32 interact_player_pvp(struct MarioState* attacker, struct MarioState* victim)
// see if it was an attack
u32 interaction = determine_interaction(attacker, cVictim->marioObj);
// Specfically override jump kicks to prevent low damage and low knockback kicks
if (attacker->action == ACT_JUMP_KICK) { interaction = INT_KICK; }
if (attacker->action == ACT_JUMP_KICK && attacker->flags & MARIO_KICKING) { interaction = INT_KICK; }
// Allow rollouts to attack
else if (PLAYER_IN_ROLLOUT_FLIP(attacker)) { interaction = INT_HIT_FROM_BELOW; }
if (!(interaction & INT_ANY_ATTACK) || (interaction & INT_HIT_FROM_ABOVE) || !passes_pvp_interaction_checks(attacker, cVictim)) {