From 7615f63753b65ee6bd2c3f819b64ffe708fab192 Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Sat, 11 Apr 2020 17:43:09 +0200 Subject: [PATCH] Oopsie --- code/modules/spells/spell.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm index 1e4e0b6dc7..143fe508b6 100644 --- a/code/modules/spells/spell.dm +++ b/code/modules/spells/spell.dm @@ -187,15 +187,18 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th return TRUE /obj/effect/proc_holder/spell/proc/invocation(mob/user = usr) //spelling the spell out and setting it on recharge/reducing charges amount + var/mob/living/L + if(isliving(user)) + L = user switch(invocation_type) if("shout") - if(user.can_speak_vocal(invocation)) + if(!L || L.can_speak_vocal(invocation)) if(prob(50))//Auto-mute? Fuck that noise user.say(invocation, forced = "spell") else user.say(replacetext(invocation," ","`"), forced = "spell") if("whisper") - if(user.can_speak_vocal(invocation)) + if(!L || L.can_speak_vocal(invocation)) if(prob(50)) user.whisper(invocation) else