From 1f04fdd2c22c2a9b3e40995262a13aaf13c25f3d Mon Sep 17 00:00:00 2001 From: Amy <3855802+amylizzle@users.noreply.github.com> Date: Fri, 2 Feb 2024 20:21:03 +0000 Subject: [PATCH] Fix hidden verb logic (#1647) --- OpenDreamShared/Dream/VerbSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenDreamShared/Dream/VerbSystem.cs b/OpenDreamShared/Dream/VerbSystem.cs index 9063791c3b..300feb84be 100644 --- a/OpenDreamShared/Dream/VerbSystem.cs +++ b/OpenDreamShared/Dream/VerbSystem.cs @@ -51,7 +51,7 @@ public string GetCategoryOrDefault(string defaultCategory) => // TODO: Hidden verbs probably shouldn't be sent to the client in the first place? public bool IsHidden(bool ignoreHiddenAttr, sbyte seeInvisibility) => - (!ignoreHiddenAttr && HiddenAttribute) || Name.StartsWith('.') || seeInvisibility < Invisibility; + (!ignoreHiddenAttr && (HiddenAttribute || Name.StartsWith('.'))) || seeInvisibility < Invisibility; public override string ToString() => GetCommandName(); }