One use portals will only become used up when they successfully teleport (#71034)

Makes one use portals self-qdel only when they confirm that whatever
tries using them has teleported.
This commit is contained in:
Striders13
2022-11-06 03:53:04 +00:00
committed by GitHub
parent 6745d4fbee
commit ecd62aed24
+2 -1
View File
@@ -183,4 +183,5 @@
/obj/effect/portal/permanent/one_way/one_use/teleport(atom/movable/M, force = FALSE)
. = ..()
qdel(src)
if (. && !isdead(M))
qdel(src)