- Fixed: SPECTRAL flag didn't check for DMG_FORCED before aborting DamageMobj.

This commit is contained in:
Major Cooke 2020-03-29 10:41:13 -05:00 committed by drfrag
parent 69f50e2056
commit 7b2b7325ab

View file

@ -1021,8 +1021,8 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
}
FName MeansOfDeath = mod;
// Spectral targets only take damage from spectral projectiles.
if (target->flags4 & MF4_SPECTRAL && !telefragDamage)
// Spectral targets only take damage from spectral projectiles unless forced or telefragging.
if ((target->flags4 & MF4_SPECTRAL) && !(flags & DMG_FORCED) && !telefragDamage)
{
if (inflictor == NULL || !(inflictor->flags4 & MF4_SPECTRAL))
{