Skip to content

Commit

Permalink
aaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Aug 4, 2024
1 parent df197b2 commit dc49f95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,14 @@
/datum/action/xeno_action/activable

/datum/action/xeno_action/activable/can_use_action()
. = ..()
if(!owner)
return FALSE
var/mob/living/carbon/xenomorph/xeno = owner
if(xeno.stat == DEAD) // to prevent dead xenos from doing wacky interactions
return FALSE
if(xeno.m_intent == MOVE_INTENT_STALK && xeno.tier < 2)
return FALSE
return TRUE

// Called when the action is clicked on.
// For non-activable Xeno actions, this is used to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@

/datum/action/xeno_action/activable/apply_salve/use_ability(atom/target_atom)
var/mob/living/carbon/xenomorph/xeno = owner

if(xeno.m_intent == MOVE_INTENT_STALK)
return FALSE

xeno.xeno_apply_salve(target_atom, health_transfer_amount, max_range, damage_taken_mod)
return ..()

Expand Down

0 comments on commit dc49f95

Please sign in to comment.