P_DamageMobj: do not spill rings if player has shield

This commit is contained in:
James R 2023-11-14 20:33:09 -08:00
parent cd2219f605
commit 19cd35a10f

View file

@ -3173,6 +3173,12 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
break;
}
// Have a shield? You get hit, but don't lose your rings!
if (player->curshield != KSHIELD_NONE)
{
ringburst = 0;
}
if (type != DMG_STUMBLE && type != DMG_WHUMBLE)
{
if (type != DMG_STING)