--Script by: SpectrumUK
freeslot("MT_REDNES")

local ENEMYTYPE = MT_REDNES

addHook("MobjDamage", function(target, inflictor, source, dmg, dmgtype)
    if not (inflictor and inflictor.valid) then return end
    if inflictor.type ~= ENEMYTYPE then return end
    local p = target.player
    if not (p and p.valid) then return end
    p.rings = 0
    P_KillMobj(target)
    return true
end, MT_PLAYER)