mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user