Fixes non-surgery tool use interaction with do_surgery (#9536)

This commit is contained in:
mikomyazaki
2020-07-31 16:16:01 +01:00
committed by GitHub
parent 75631be301
commit fdeae3a711
2 changed files with 7 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ proc/spread_germs_to_organ(var/obj/item/organ/external/E, var/mob/living/carbon/
// We didn't find a surgery, or decided not to perform one.
if(!istype(S))
to_chat(user, SPAN_WARNING("You aren't sure what you could do to \the [M] with \the [tool]."))
return TRUE
return FALSE
// Otherwise we can make a start on surgery!
else if(istype(M) && !QDELETED(M) && user.a_intent == I_HELP && user.get_active_hand() == tool)

View File

@@ -0,0 +1,6 @@
author: mikomyazaki
delete-after: True
changes:
- bugfix: "Using non-surgery tool items on targets that are buckled to chairs, beds etc. e.g. health analyzers will now work properly again."