Fixes some hallucination sanity. (#40009)

This commit is contained in:
AnturK
2018-08-31 13:32:20 +02:00
committed by vuonojenmustaturska
parent deb756eee7
commit 4c61996455
+3
View File
@@ -1278,6 +1278,9 @@ GLOBAL_LIST_INIT(hallucination_list, list(
var/list/turf/startlocs = list()
for(var/turf/open/T in view(world.view+1,target)-view(world.view,target))
startlocs += T
if(!startlocs.len)
qdel(src)
return
var/turf/start = pick(startlocs)
var/proj_type = pick(subtypesof(/obj/item/projectile/hallucination))
feedback_details += "Type: [proj_type]"