Skip to content

Commit

Permalink
Fixes cloaked scout being decapable when wearing a helmet (#6224)
Browse files Browse the repository at this point in the history
# About the pull request

Closes #6215, keeps beagle's original functionality the same as well. 

# Changelog

:cl:
fix: Fixes scout being able to be decapitated with a helmet on while
cloaked.
/:cl:

Co-authored-by: DOOM <N/A>
  • Loading branch information
vero5123 committed May 3, 2024
1 parent 775dc1d commit e5b3e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ treat_grafted var tells it to apply to grafted but unsalved wounds, for burn kit
/obj/limb/head/limb_delimb(damage_source)
var/obj/item/clothing/head/helmet/owner_helmet = owner.head

if(!istype(owner_helmet) || !owner.allow_gun_usage)
if(!istype(owner_helmet) || (issynth(owner) && !owner.allow_gun_usage))
droplimb(0, 0, damage_source)
return

Expand Down

0 comments on commit e5b3e3d

Please sign in to comment.