Skip to content

Commit

Permalink
[MIRROR] Fixes starting self surgery (#1659) (#2580)
Browse files Browse the repository at this point in the history
* Fixes starting self surgery (#82255)

## About The Pull Request

Fixes being unable to start self-surgery while laying down.

Closes tgstation/tgstation#82034

## Changelog

:cl: LT3
fix: Fixed being unable to start self surgery
/:cl:

* Fixes starting self surgery

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: lessthanthree <[email protected]>
  • Loading branch information
3 people authored Mar 27, 2024
1 parent c527703 commit 71db96f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/datums/components/surgery_initiator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
continue
if(!is_type_in_list(target, surgery.target_mobtypes))
continue
if(user == target && !(surgery.surgery_flags & SURGERY_SELF_OPERABLE))
continue

if(isnull(affecting))
if(surgery.surgery_flags & SURGERY_REQUIRE_LIMB)
Expand Down
1 change: 1 addition & 0 deletions code/modules/surgery/tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
w_class = WEIGHT_CLASS_TINY
attack_verb_continuous = list("slaps")
attack_verb_simple = list("slap")
interaction_flags_atom = parent_type::interaction_flags_atom | INTERACT_ATOM_IGNORE_MOBILITY

/obj/item/surgical_drapes/Initialize(mapload)
. = ..()
Expand Down

0 comments on commit 71db96f

Please sign in to comment.