Support holoparasites can teleport between station Z levels (#96230)

This commit is contained in:
Leland Kemble
2026-05-28 19:44:16 -04:00
committed by GitHub
parent 15aa1365bb
commit 5d2809d511
@@ -112,6 +112,8 @@
/// Validate whether we can teleport this object
/datum/action/cooldown/mob_cooldown/guardian_bluespace_beacon/proc/can_teleport(mob/living/source, atom/movable/target)
if(!istype(target)) // Turfs
return FALSE
if (isnull(beacon))
source.balloon_alert(source, "no beacon!")
return FALSE
@@ -126,7 +128,7 @@
if (target.anchored)
target.balloon_alert(source, "it won't budge!")
return FALSE
if(beacon.z != target.z)
if((beacon.z != target.z) && !(target.z in SSmapping.get_connected_levels(beacon.z)))
target.balloon_alert(source, "too far from beacon!")
return FALSE
return TRUE