mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user