Update mecha_defense.dm

This commit is contained in:
silicons
2020-09-22 04:38:47 -07:00
committed by GitHub
parent b5685852a6
commit 60a299197b
+2 -6
View File
@@ -266,12 +266,8 @@
return 1
else if(istype(W, /obj/item/mecha_parts/mecha_tracking))
if(!user.transferItemToLoc(W, src))
to_chat(user, "<span class='warning'>\the [W] is stuck to your hand, you cannot put it in \the [src]!</span>")
return
trackers += W
user.visible_message("[user] attaches [W] to [src].", "<span class='notice'>You attach [W] to [src].</span>")
diag_hud_set_mechtracking()
var/obj/item/mecha_parts/mecha_tracking/tracker = W
tracker.try_attack_part(user, src)
return
else
return ..()