From 3be08feb59ec27aa4f73aa3ba623185f97a213a0 Mon Sep 17 00:00:00 2001 From: Saphire Lattice Date: Mon, 20 Jan 2025 12:51:47 +0700 Subject: [PATCH] Fix self-targeting verbs (#2052) --- OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs b/OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs index 81fa7f7f00..b5ff163d17 100644 --- a/OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs +++ b/OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs @@ -95,7 +95,7 @@ public VerbMenuPopup(ClientVerbSystem? verbSystem, sbyte seeInvisible, ClientObj private void AddVerb(int verbId, ClientObjectReference verbSrc, VerbSystem.VerbInfo verbInfo) { var button = AddButton(verbInfo.Name); - var takesTargetArg = verbInfo.GetTargetType() != null && !verbSrc.Equals(_target); + var takesTargetArg = verbInfo.GetTargetType() != null; button.OnPressed += _ => { _verbSystem?.ExecuteVerb(verbSrc, verbId, takesTargetArg ? [_target] : []);