fix windoor cable dupe (#34475)

This commit is contained in:
toomykins
2023-06-27 20:46:10 +02:00
committed by GitHub
parent 232b8b96e0
commit be9f698d41

View File

@@ -161,7 +161,7 @@
user.visible_message("[user] is cutting the wires from [src].", "You start to cut the wires from [src].")
if(do_after(user, src, 40))
if(gcDestroyed)
if(gcDestroyed || !wired)
return
to_chat(user, "<span class='notice'>You cut \the [name] wires!</span>")
new /obj/item/stack/cable_coil(get_turf(user), 2)