Merge branch 'fix-spb-combo' into 'master'

SPB: fix endless combo on players in its path

Closes #1015

See merge request KartKrew/Kart!1900
This commit is contained in:
AJ Martinez 2024-02-09 22:49:31 +00:00
commit 7b5abc19b9

View file

@ -2642,6 +2642,14 @@ static boolean P_FlashingException(const player_t *player, const mobj_t *inflict
return false;
}
if (inflictor->type == MT_SPB)
{
// The SPB does not die on impact with players other than its intended target.
// Ignoring flashing tics would cause an endless combo on anyone who gets in way of the SPB.
// Upon hitting its target, DMG_EXPLODE will be used (which ignores flashing tics).
return false;
}
if (!P_IsKartItem(inflictor->type) && inflictor->type != MT_PLAYER)
{
// Exception only applies to player items.