From 7c9352d398f2a0902a0cedae54749c1a93281972 Mon Sep 17 00:00:00 2001 From: Miki_hero <100715076+Mikihero@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:10:23 +0100 Subject: [PATCH] update ismilitary to reflect how the wiki categorizes guards --- EXILED/Exiled.API/Extensions/RoleExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.API/Extensions/RoleExtensions.cs b/EXILED/Exiled.API/Extensions/RoleExtensions.cs index f9e86fa1a0..153d09d2fa 100644 --- a/EXILED/Exiled.API/Extensions/RoleExtensions.cs +++ b/EXILED/Exiled.API/Extensions/RoleExtensions.cs @@ -156,7 +156,7 @@ public static bool TryGetRoleBase(this RoleTypeId roleType, out T roleBase) /// /// The . /// A boolean which is true when the role is a military role. Does not include Facility Guards. - public static bool IsMilitary(this RoleTypeId roleType) => roleType.IsNtf() || roleType.IsChaos(); + public static bool IsMilitary(this RoleTypeId roleType) => roleType.IsNtf() || roleType.IsChaos() || roleType == RoleTypeId.FacilityGuard; /// /// Checks if the role is a civilian role (Scientists and Class-D).