Defibs now shock people giving CPR (#23257)

* defibs now shock people giving CPR

* use isnull instead

* humanoid like me
This commit is contained in:
Luc
2023-11-24 15:33:01 +00:00
committed by GitHub
parent 0b4a2bb5cf
commit 9f9db15c8b
3 changed files with 13 additions and 7 deletions
+4
View File
@@ -304,6 +304,10 @@
for(var/obj/item/grab/G in target.grabbed_by)
if(ishuman(G.assailant))
excess_shock(user, target, G.assailant, defib_ref)
if(target.receiving_cpr_from)
var/mob/living/carbon/human/H = locateUID(target.receiving_cpr_from)
if(istype(H))
excess_shock(user, target, H, defib_ref)
target.med_hud_set_health()
target.med_hud_set_status()