[MIRROR] Fixes swarmers getting killed by shocks (#6075)

* Fixes swarmer electrocution (#36596)

* Fixes swarmers getting killed by shocks
This commit is contained in:
CitadelStationBot
2018-03-22 19:30:37 -05:00
committed by Poojawa
parent 69ddb63bb4
commit 8321484d4d
@@ -479,6 +479,11 @@
playsound(src,'sound/effects/sparks4.ogg',50,1)
do_teleport(target, F, 0)
/mob/living/simple_animal/hostile/swarmer/electrocute_act(shock_damage, obj/source, siemens_coeff = 1, safety = FALSE, tesla_shock = FALSE, illusion = FALSE, stun = TRUE)
if(!tesla_shock)
return FALSE
return ..()
/mob/living/simple_animal/hostile/swarmer/proc/DismantleMachine(obj/machinery/target)
do_attack_animation(target)
to_chat(src, "<span class='info'>We begin to dismantle this machine. We will need to be uninterrupted.</span>")