diff --git a/code/modules/surgery/dental_implant.dm b/code/modules/surgery/dental_implant.dm index 93eeeed91e9..8a1bed115b7 100644 --- a/code/modules/surgery/dental_implant.dm +++ b/code/modules/surgery/dental_implant.dm @@ -36,9 +36,7 @@ user.drop_item() tool.forceMove(target) - var/datum/action/item_action/hands_free/activate_pill/P = new - P.button_icon_state = tool.icon_state - P.target = tool + var/datum/action/item_action/hands_free/activate_pill/P = new(tool, tool.icon, tool.icon_state) P.name = "Activate Pill ([tool.name])" P.Grant(target) @@ -48,8 +46,8 @@ /datum/action/item_action/hands_free/activate_pill name = "Activate Pill" -/datum/action/item_action/hands_free/activate_pill/Trigger(left_click) - if(!..()) +/datum/action/item_action/hands_free/activate_pill/Trigger(left_click = TRUE) + if(!..(left_click, FALSE)) return to_chat(owner, "You grit your teeth and burst the implanted [target]!") add_attack_logs(owner, owner, "Swallowed implanted [target]") @@ -59,3 +57,4 @@ Remove(owner) qdel(target) return TRUE +