Skip to content

Commit

Permalink
Update xeno_buffs.dm
Browse files Browse the repository at this point in the history
Signed-off-by: spaghetti <[email protected]>
  • Loading branch information
definitelynotspaghetti authored Dec 5, 2024
1 parent 5ad3860 commit 07a458d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/datums/status_effects/xeno_buffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()

// ***************************************
Expand Down

0 comments on commit 07a458d

Please sign in to comment.