Skip to content

Commit

Permalink
Lets hand-based extinguishing be used on corpses (#21149)
Browse files Browse the repository at this point in the history
* extinguish

* Update species.dm
  • Loading branch information
Moltijoe authored Dec 23, 2023
1 parent 66779ad commit fcbeee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@
if(!istype(M))
return

if(try_extinguish(M))
if(try_extinguish(M)) //mostly redundant since it's called in species.dm also, but this allows alternative forms of help act calling to extinguish
return

if(src == M)
Expand Down
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/human/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,9 @@ GLOBAL_LIST_EMPTY(features_by_species)
return

/datum/species/proc/help(mob/living/carbon/human/user, mob/living/carbon/human/target, datum/martial_art/attacker_style)
if(!((target.health < 0 || HAS_TRAIT(target, TRAIT_FAKEDEATH)) && !(target.mobility_flags & MOBILITY_STAND)))
if(target.try_extinguish(user))
return 1
else if(!((target.health < 0 || HAS_TRAIT(target, TRAIT_FAKEDEATH)) && !(target.mobility_flags & MOBILITY_STAND)))
target.help_shake_act(user)
if(target != user)
log_combat(user, target, "shaken")
Expand Down

0 comments on commit fcbeee1

Please sign in to comment.