Can now whisper while restrained (#10591)

This commit is contained in:
mikomyazaki
2020-11-18 13:06:21 -03:00
committed by GitHub
parent deb2046ea0
commit bd651305f3
3 changed files with 91 additions and 49 deletions
@@ -316,13 +316,16 @@ var/global/list/default_medbay_channels = list(
if (iscarbon(M))
var/mob/living/carbon/C = M
if ((CE_UNDEXTROUS in C.chem_effects) || C.stunned >= 10)
to_chat(M, SPAN_WARNING("Your can't move your arms enough to activate the radio..."))
to_chat(M, SPAN_WARNING("You can't move your arms enough to activate the radio..."))
return
if(iszombie(M))
to_chat(M, SPAN_WARNING("Try as you might, you cannot will your decaying body into operating \the [src]."))
return FALSE
if(istype(M))
if(M.restrained())
to_chat(M, SPAN_WARNING("You can't speak into \the [src.name] while restrained."))
return FALSE
M.trigger_aiming(TARGET_CAN_RADIO)
// Uncommenting this. To the above comment: