From 4cba6840c1d960a1d6e9e02b9d8abae86387b375 Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Thu, 28 Feb 2019 18:13:00 +0100 Subject: [PATCH] woops adding safeguards --- code/modules/mob/living/simple_animal/animals/synx.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/animals/synx.dm b/code/modules/mob/living/simple_animal/animals/synx.dm index 3b7df6a4f8..529a64d174 100644 --- a/code/modules/mob/living/simple_animal/animals/synx.dm +++ b/code/modules/mob/living/simple_animal/animals/synx.dm @@ -331,10 +331,12 @@ mob/living/simple_animal/synx/PunchTarget() set name = "speak" set desc = "Takes a sentence you heard and says it" set category = "Abilities" - name = pick(voices) - if(speak) + if(speak && voices) + name = pick(voices) spawn(10) src.say(pick(speak)) + else + M.custom_pain("YOU NEED TO HEAR THINGS FIRST, try using Ventcrawl to eevesdrop on nerds",30) spawn(20) name = realname