Fixes scream spam. (#7896)

You can't scream while unconscious anymore.
This commit is contained in:
Matt Atlas
2020-01-03 20:23:06 +02:00
committed by Erki
parent 91ec7e3f10
commit 214d4bef4e
2 changed files with 44 additions and 1 deletions
@@ -15,7 +15,7 @@
if (I.implanted)
I.trigger(act, src)
if(src.stat == 2.0 && (act != "deathgasp"))
if(stat == DEAD && (act != "deathgasp"))
return
switch(act)
if ("airguitar")
@@ -589,6 +589,8 @@
message = "sadly can't find anybody to give daps to, and daps [get_visible_gender() == MALE ? "himself" : get_visible_gender() == FEMALE ? "herself" : "themselves"]. Shameful."
if ("scream")
if(stat >= UNCONSCIOUS)
return
if (miming)
message = "acts out a scream!"
m_type = 1