From 07a458d2c91f997ccdc68145332fe122fb27a94b Mon Sep 17 00:00:00 2001 From: spaghetti <48985748+definitelynotspaghetti@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:06:18 +0300 Subject: [PATCH] Update xeno_buffs.dm Signed-off-by: spaghetti <48985748+definitelynotspaghetti@users.noreply.github.com> --- code/datums/status_effects/xeno_buffs.dm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/datums/status_effects/xeno_buffs.dm b/code/datums/status_effects/xeno_buffs.dm index b9ae6445bb0..9102a75f204 100644 --- a/code/datums/status_effects/xeno_buffs.dm +++ b/code/datums/status_effects/xeno_buffs.dm @@ -1067,10 +1067,14 @@ /datum/status_effect/upgrade_vampirism/proc/on_slash(datum/source, mob/living/target) SIGNAL_HANDLER - if(target.stat == DEAD || !ishuman(target)) + if(target.stat == DEAD) + return + if(!ishuman(target)) return - var/health_amount = buff_owner.maxHealth * leech_buff_per_chamber * chamber_scaling - HEAL_XENO_DAMAGE(buff_owner, health_amount, FALSE) + var/bruteloss_healed = buff_owner.maxHealth * leech_buff_per_chamber * chamber_scaling + var/fireloss_healed = clamp(bruteloss_healed - buff_owner.bruteloss, 0, bruteloss_healed) + buff_owner.adjustBruteLoss(-bruteloss_healed) + buff_owner.adjustFireLoss(-fireloss_healed) buff_owner.updatehealth() // ***************************************