Unborks supermatter theft (#29432)

This commit is contained in:
Ashe Higgs
2017-07-24 09:51:04 +02:00
committed by AnturK
parent 522a8d6a95
commit a5e7d63cb2
+2 -1
View File
@@ -168,6 +168,7 @@
T.sliver.forceMove(src)
sliver = T.sliver
T.sliver = null
T.icon_state = "supermatter_tongs"
icon_state = "core_container_loaded"
to_chat(user, "<span class='warning'>Container is sealing...</span>")
addtimer(CALLBACK(src, .proc/seal), 50)
@@ -213,7 +214,7 @@
/obj/item/weapon/hemostat/supermatter/afterattack(atom/O, mob/user, proximity)
if(!sliver)
return
if(ismovableatom(O))
if(ismovableatom(O) && O != sliver)
Consume(O)
to_chat(usr, "<span class='notice'>\The [sliver] is dusted along with \the [O]!</span>")
QDEL_NULL(sliver)