Possible fix for borers teleporting through windows.

This commit is contained in:
Zuhayr
2013-12-19 00:00:28 +10:30
parent 59f35ade32
commit f936dbda31

View File

@@ -355,13 +355,15 @@ mob/living/simple_animal/borer/proc/detatch()
var/list/choices = list()
for(var/mob/living/carbon/C in view(1,src))
if(C.stat != 2)
if(C.stat != 2 && src.Adjacent(C))
choices += C
var/mob/living/carbon/M = input(src,"Who do you wish to infest?") in null|choices
if(!M || !src) return
if(!(src.Adjacent(M))) return
if(M.has_brain_worms())
src << "You cannot infest someone who is already infested!"
return