[MIRROR] Stops giving you organ damage messages if you arent conscious (#5991)

* Stops giving you organ damage messages if you arent conscious (#59311)

* Stops giving you organ damage messages if you arent conscious

Co-authored-by: skoglol <33292112+kriskog@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-27 22:34:45 +01:00
committed by GitHub
co-authored by skoglol
parent 17c5994835
commit 0f4945bc6e
2 changed files with 4 additions and 1 deletions
@@ -172,7 +172,7 @@
damage = clamp(damage + damage_amount, 0, maximum)
var/mess = check_damage_thresholds(owner)
prev_damage = damage
if(mess && owner)
if(mess && owner.stat <= SOFT_CRIT)
to_chat(owner, mess)
///SETS an organ's damage to the amount "damage_amount", and in doing so clears or sets the failing flag, good for when you have an effect that should fix an organ if broken