Skip to content

Commit

Permalink
No regen for Vamp Healer while on fire
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostsheet committed Sep 9, 2024
1 parent a4b39df commit d70ce8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@
target_turfs += current_turfs
telegraph_atom_list += new /obj/effect/xenomorph/xeno_telegraph/red(current_turfs, 2)

var/can_heal = !(SEND_SIGNAL(xeno, COMSIG_XENO_PRE_HEAL) & COMPONENT_CANCEL_XENO_HEAL)

for (var/turf/current_turfs in target_turfs)
for (var/mob/living/carbon/target in current_turfs)
if (target.stat == DEAD)
Expand All @@ -214,11 +216,13 @@
log_attack("[key_name(xeno)] attacked [key_name(target)] with Flurry")
target.apply_armoured_damage(get_xeno_damage_slash(target, xeno.caste.melee_damage_upper), ARMOR_MELEE, BRUTE, rand_zone())
playsound(get_turf(target), 'sound/weapons/alien_claw_flesh4.ogg', 30, TRUE)
xeno.flick_heal_overlay(1 SECONDS, "#00B800")
xeno.gain_health(30)
xeno.animation_attack_on(target)
if(can_heal)
xeno.flick_heal_overlay(1 SECONDS, "#00B800")
xeno.gain_health(30)

xeno.emote("roar")
if(can_heal)//No heals = No Roar
xeno.emote("roar")
return ..()

/datum/action/xeno_action/activable/tail_jab/use_ability(atom/targeted_atom)
Expand Down Expand Up @@ -374,10 +378,11 @@
xeno.animation_attack_on(target_carbon, pixel_offset = 16)
target_carbon.apply_armoured_damage(60, ARMOR_MELEE, BRUTE, "head", 5) //DIE
target_carbon.death(create_cause_data("headbite execution", xeno), FALSE)
xeno.gain_health(150)
xeno.xeno_jitter(1 SECONDS)
xeno.flick_heal_overlay(3 SECONDS, "#00B800")
xeno.emote("roar")
if(!(SEND_SIGNAL(xeno, COMSIG_XENO_PRE_HEAL) & COMPONENT_CANCEL_XENO_HEAL))
xeno.gain_health(150)
xeno.xeno_jitter(1 SECONDS)
xeno.flick_heal_overlay(3 SECONDS, "#00B800")
xeno.emote("roar")
log_attack("[key_name(xeno)] was executed by [key_name(target_carbon)] with a headbite!")
apply_cooldown()
return ..()
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
if(target.health < 0)
target.gain_health(abs(target.health)) // gets them out of crit first

target.ExtinguishMob()
target.gain_health(xeno.health * transfer_mod)
target.updatehealth()

Expand Down

0 comments on commit d70ce8e

Please sign in to comment.