Tweaks instagib lasers

Instagib lasers now work on non-carbon mobs (such as simple_animals),
and turfs.

No CL, as admin-only.
This commit is contained in:
Kyep
2017-06-05 03:55:08 -07:00
parent ae8cad31df
commit ed3d8cb278
+6 -4
View File
@@ -130,7 +130,9 @@
/obj/item/projectile/beam/instakill/on_hit(atom/target)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
M.visible_message("<span class='danger'>[M] explodes into a shower of gibs!</span>")
M.gib()
if(isliving(target))
var/mob/living/L = target
L.visible_message("<span class='danger'>[L] explodes!</span>")
L.gib()
else if(isturf(target) || istype(target,/obj/structure/))
target.ex_act(2)