fixes external limbs runtiming when no owner at times (#23711)

* fixes external limbs runtiming when no owner at times

* =
This commit is contained in:
Qwertytoforty
2024-01-14 12:33:39 +00:00
committed by GitHub
parent db7549823f
commit 57bc5a4607
@@ -220,7 +220,9 @@
****************************************************/
/obj/item/organ/external/receive_damage(brute, burn, sharp, used_weapon = null, list/forbidden_limbs = list(), ignore_resists = FALSE, updating_health = TRUE)
var/max_limb_damage = max_damage - (HAS_TRAIT(owner, TRAIT_IPC_JOINTS_MAG) ? max_damage * 0.25 : 0)
var/max_limb_damage = max_damage
if(owner)
max_limb_damage -= (HAS_TRAIT(owner, TRAIT_IPC_JOINTS_MAG) ? max_damage * 0.25 : 0)
if(tough && !ignore_resists)
brute = max(0, brute - 5)
burn = max(0, burn - 4)