Skip to content

Commit

Permalink
Update lurker_abilities.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamerdk committed Jun 27, 2023
1 parent a523931 commit d45c257
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
can_be_shield_blocked = TRUE

/datum/action/xeno_action/activable/pounce/lurker/additional_effects_always()
var/mob/living/carbon/xenomorph/X = owner
if (!istype(X))
return

if (X.mutation_type == LURKER_NORMAL)
var/found = FALSE
for (var/mob/living/carbon/human/H in get_turf(X))
if(H.stat == DEAD)
continue
found = TRUE
break

if (found)
var/datum/action/xeno_action/onclick/lurker_invisibility/LIA = get_xeno_action_by_type(X, /datum/action/xeno_action/onclick/lurker_invisibility)
if (istype(LIA))
LIA.invisibility_off()
var/mob/living/carbon/xenomorph/xeno = owner
if (!istype(xeno))
return

if (xeno.mutation_type == LURKER_NORMAL)
var/found = FALSE
for (var/mob/living/carbon/human/human in get_turf(xeno))
if(human.stat == DEAD)
continue
found = TRUE
break

if (found)
var/datum/action/xeno_action/onclick/lurker_invisibility/lurker_invis = get_xeno_action_by_type(xeno, /datum/action/xeno_action/onclick/lurker_invisibility)
if (istype(lurker_invis))
lurker_invis.invisibility_off()

/datum/action/xeno_action/activable/pounce/lurker/additional_effects(mob/living/L)
var/mob/living/carbon/xenomorph/X = owner
Expand Down

0 comments on commit d45c257

Please sign in to comment.