Merge pull request #3764 from Citadel-Station-13/upstream-merge-32243

[MIRROR] [s] New blob overminds off the station Z level are moved to the station
This commit is contained in:
LetterJay
2017-11-03 00:13:37 -05:00
committed by GitHub
+5 -1
View File
@@ -461,7 +461,11 @@
qdel(src)
/mob/proc/become_overmind(starting_points = 60)
var/mob/camera/blob/B = new /mob/camera/blob(loc, starting_points)
var/turf/T = get_turf(loc) //just to avoid messing up in lockers
var/area/A = get_area(T)
if(((A && !A.blob_allowed) || !(T.z in GLOB.station_z_levels)) && LAZYLEN(GLOB.blobstart))
T = get_turf(pick(GLOB.blobstart))
var/mob/camera/blob/B = new /mob/camera/blob(T, starting_points)
B.key = key
. = B
qdel(src)