mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Support holoparasites can teleport between station Z levels (#96230)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user