Fixes auto pain emotes + groan/scream spam. (#9661)

This bug made it possible for the game to pick a 70 pain strength emote at like 10 pain.

Which is no bueno.

Security machos can't cry, we all know that.
This commit is contained in:
Matt Atlas
2020-08-11 12:36:59 +02:00
committed by GitHub
parent 3c3e5bf09f
commit 981a8aebab
3 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -258,7 +258,7 @@
var/blunt = !!(brute && !sharp && !edge)
if(status & ORGAN_BROKEN && prob(40) && brute)
if(owner && (owner.can_feel_pain()))
if(owner && (owner.can_feel_pain()) && owner.stat == CONSCIOUS)
owner.emote(pick("scream", "groan")) //getting hit on broken hand hurts
if(used_weapon)