Stethoscope now checks whether the target is dead. (#16062)

* Stethoscope now checks whether the target is dead.

* Update code/modules/clothing/under/accessories/accessory.dm

Removes unnecessary parentheses.

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
Dragonkiller93
2021-05-29 13:17:25 -07:00
committed by GitHub
parent 8f1b77e02c
commit a8608ccee1
@@ -141,7 +141,7 @@
user.visible_message("[user] places \the [src] against [M]'s chest and listens attentively.", "You place \the [src] against [M]'s chest...")
var/obj/item/organ/internal/H = M.get_int_organ(/obj/item/organ/internal/heart)
var/obj/item/organ/internal/L = M.get_int_organ(/obj/item/organ/internal/lungs)
if((H && M.pulse) || (L && !HAS_TRAIT(M, TRAIT_NOBREATH)))
if(M.pulse && (H || (L && !HAS_TRAIT(M, TRAIT_NOBREATH))))
var/color = "notice"
if(H)
var/heart_sound