Merge pull request #8753 from Sishen1542/siliconmanbad

[PORT] Non-station AI can no longer interact off their z-level.
This commit is contained in:
deathride58
2019-06-28 00:29:32 -04:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -288,8 +288,17 @@
/mob/living/silicon/ai/can_interact_with(atom/A)
. = ..()
var/turf/ai = get_turf(src)
var/turf/target = get_turf(A)
if (.)
return
if(!target)
return
if ((ai.z != target.z) && !is_station_level(ai.z))
return FALSE
if (istype(loc, /obj/item/aicard))
var/turf/T0 = get_turf(src)
var/turf/T1 = get_turf(A)