//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_REDSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_REDSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_ORANGESUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_ORANGESUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_GOLDSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_GOLDSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_PERIDOTSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_PERIDOTSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_SKYSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_SKYSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_PURPLESUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_PURPLESUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_RUSTSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_RUSTSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_TANSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_TANSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)

//Damage enemies just by running into them
addHook("PlayerCanDamage", function(player, mobj)
	if player.mo and player.mo.color == SKINCOLOR_SILVERSUPER and not P_PlayerInPain(player)
	and (mobj.flags&MF_ENEMY or mobj.flags&MF_BOSS) return true end
end, MT_PLAYER)

//If you get hurt, don't lose rings, but still lose shields
addHook("MobjDamage", function(target, inflictor, source, damage, damagetype)
	if target.player and target.color == SKINCOLOR_SILVERSUPER and not (damagetype&DMG_DEATHMASK)
	and target.player.powers[pw_shield] == SH_NONE
		return true
	end
end, MT_PLAYER)