Make Brak's electric barrier damage Elemental and Flame Shields.

This commit is contained in:
spherallic 2021-11-27 14:23:02 +01:00
parent 6a6b292c73
commit 1afb0c556a

View file

@ -3651,7 +3651,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
return true;
}
if (!force && inflictor && inflictor->flags & MF_FIRE)
if (!force && inflictor && inflictor->flags & MF_FIRE && !(damagetype && damagetype != DMG_FIRE))
{
if (player->powers[pw_shield] & SH_PROTECTFIRE)
return false; // Invincible to fire objects