Skip to content

Commit

Permalink
Update execute_tag.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed May 24, 2024
1 parent ae59329 commit f99c2b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/datums/effects/xeno_strains/execute_tag.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
/datum/effects/execute_tag/New(atom/affected, mob/from = null, last_dmg_source = null, zone = "chest", ttl = 35)
. = ..()

addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(qdel), src), ttl)
QDEL_IN(src, ttl)

if (ishuman(affected))
var/mob/living/carbon/human/affected_human = affected
affected_human.update_xeno_hostile_hud()
affected_human.update_execute_hud()


/datum/effects/execute_tag/validate_atom(mob/living/carbon/affected_carbon)
Expand All @@ -28,14 +28,14 @@
return

var/mob/living/carbon/human/affected_human = affected_atom
affected_human.update_xeno_hostile_hud()
affected_human.update_execute_hud()


/datum/effects/execute_tag/Destroy()
if (!ishuman(affected_atom))
return ..()

var/mob/living/carbon/human/affected_human = affected_atom
addtimer(CALLBACK(affected_human, TYPE_PROC_REF(/mob/living/carbon/human, update_xeno_hostile_hud)), 0.3 SECONDS)
addtimer(CALLBACK(affected_human, TYPE_PROC_REF(/mob/living/carbon/human, update_execute_hud)), 0.3 SECONDS)

return ..()

0 comments on commit f99c2b4

Please sign in to comment.