Mediborg omnitool displays error message for wrong tool in surgery step (#86573)

## About The Pull Request
- Fixes #85780

## Changelog
🆑
fix: Mediborg omnitool displays error message for wrong tool in surgery
step
/🆑
This commit is contained in:
SyncIt21
2024-09-10 16:30:28 +02:00
committed by GitHub
parent 8182453c4e
commit ec0bb5de68
2 changed files with 4 additions and 0 deletions
@@ -85,6 +85,8 @@
if(isnull(step))
return FALSE
var/obj/item/tool = user.get_active_held_item()
if(tool)
tool = tool.get_proxy_attacker_for(target, user)
if(step.try_op(user, target, user.zone_selected, tool, src, try_to_fail))
return TRUE
if(tool && tool.tool_behaviour) //Mechanic organ manipulation isn't done with just surgery tools
+2
View File
@@ -124,6 +124,8 @@
if(isnull(step))
return FALSE
var/obj/item/tool = user.get_active_held_item()
if(tool)
tool = tool.get_proxy_attacker_for(target, user)
if(step.try_op(user, target, user.zone_selected, tool, src, try_to_fail))
return TRUE
if(tool && tool.item_flags & SURGICAL_TOOL) //Just because you used the wrong tool it doesn't mean you meant to whack the patient with it