Removes deadringer cloak exploit

Nothing would uncloak you, you could just stab people with impunity for quite a while. Not exactly true to the other cloaks in the game, plus the TF2 original where you can't attack.
This commit is contained in:
Aronai Sieyes
2020-02-23 12:31:19 -05:00
parent 2bea80895d
commit e44b9e4550

View File

@@ -63,6 +63,8 @@
for(var/obj/item/rig_module/stealth_field/cloaker in suit.installed_modules)
if(cloaker.active)
cloaker.deactivate()
for(var/obj/item/weapon/deadringer/dr in src)
dr.uncloak()
/mob/living/carbon/human/is_cloaked()
if(mind && mind.changeling && mind.changeling.cloaked) // Ling camo.
@@ -72,6 +74,9 @@
for(var/obj/item/rig_module/stealth_field/cloaker in suit.installed_modules)
if(cloaker.active)
return TRUE
for(var/obj/item/weapon/deadringer/dr in src)
if(dr.timer > 20)
return TRUE
return ..()
/mob/living/carbon/human/get_ear_protection()