Fixes xeno whispers, for real this time.

This commit is contained in:
bgobandit
2015-10-12 16:18:34 -04:00
parent e50928ec0d
commit 4d049bfb41
@@ -102,9 +102,10 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_whisper"
/obj/effect/proc_holder/alien/whisper/fire(mob/living/carbon/user)
var/mob/living/M = input("Select who to whisper to:","Whisper to?",null) as mob in oview(user)
if(!M)
return 0
var/list/options = list()
for(var/mob/living/Ms in oview(user))
options += Ms
var/mob/living/M = input("Select who to whisper to:","Whisper to?",null) as null|mob in options
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
if(msg)
log_say("AlienWhisper: [key_name(user)]->[M.key] : [msg]")