Skip to content

Commit

Permalink
Fix self-targeting verbs (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaphireLattice authored Jan 20, 2025
1 parent 9a64cda commit 3be08fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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] : []);
Expand Down

0 comments on commit 3be08fe

Please sign in to comment.