From 41d928311754a29f72b3fa75188affa04807ea0c Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:45:02 -0500 Subject: [PATCH] Use IsInGroup/IsInRaid for group checks Replace numeric GetNumPartyMembers/GetNumRaidMembers checks with IsInGroup() and IsInRaid() in Conditionals.lua for the group and nogroup conditionals. --- Conditionals.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Conditionals.lua b/Conditionals.lua index 8980898..266d976 100644 --- a/Conditionals.lua +++ b/Conditionals.lua @@ -6025,14 +6025,14 @@ CleveRoids.Keywords = { local groupVal = conditionals.group -- Boolean form [group] - check if in any group if groupVal == true then - return GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0 + return IsInGroup() end -- Value form [group:party] or [group:raid] or [group:party/raid] return Multi(groupVal, function(groupType) if groupType == "party" then - return GetNumPartyMembers() > 0 + return IsInGroup() elseif groupType == "raid" then - return GetNumRaidMembers() > 0 + return IsInRaid() end return false end, conditionals, "group") @@ -6044,14 +6044,14 @@ CleveRoids.Keywords = { local groupVal = conditionals.nogroup -- Boolean form [nogroup] - check if not in any group if groupVal == true then - return GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0 + return not IsInGroup() end -- Value form with De Morgan's law via NegatedMulti return NegatedMulti(groupVal, function(groupType) if groupType == "party" then - return GetNumPartyMembers() == 0 + return not IsInGroup() elseif groupType == "raid" then - return GetNumRaidMembers() == 0 + return not IsInRaid() end return true end, conditionals, "nogroup")