[MIRROR] Wizard can't cast shout or whisper spells when he is unable to speak (#2965)
* Wizard being mute now blocks touch attacks from activating (can still be cast) * Wizard can't cast shout or whisper spells when he is unable to speak
This commit is contained in:
committed by
kevinz000
parent
99d57a7f19
commit
1e309deac0
@@ -49,6 +49,9 @@
|
||||
/obj/item/melee/touch_attack/disintegrate/afterattack(atom/target, mob/living/carbon/user, proximity)
|
||||
if(!proximity || target == user || !ismob(target) || !iscarbon(user) || user.lying || user.handcuffed) //exploding after touching yourself would be bad
|
||||
return
|
||||
if(!user.can_speak_vocal())
|
||||
to_chat(user, "<span class='notice'>You can't get the words out!</span>")
|
||||
return
|
||||
var/mob/M = target
|
||||
do_sparks(4, FALSE, M.loc)
|
||||
M.gib()
|
||||
@@ -68,6 +71,9 @@
|
||||
if(user.lying || user.handcuffed)
|
||||
to_chat(user, "<span class='warning'>You can't reach out!</span>")
|
||||
return
|
||||
if(!user.can_speak_vocal())
|
||||
to_chat(user, "<span class='notice'>You can't get the words out!</span>")
|
||||
return
|
||||
var/mob/living/M = target
|
||||
M.Stun(40)
|
||||
M.petrify()
|
||||
|
||||
Reference in New Issue
Block a user