From 1afa26cf4935044eb16935a96188353bbcc79b1a Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 30 Jun 2012 20:19:25 +0000 Subject: [PATCH] - Threat module fixes for WoW 5.0 --- modules/Threat.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/Threat.lua b/modules/Threat.lua index f104579..716f55d 100644 --- a/modules/Threat.lua +++ b/modules/Threat.lua @@ -232,7 +232,13 @@ function IceThreat.prototype:Update(unit) unit = self.unit end - if self.moduleSettings.onlyShowInGroups and (GetNumPartyMembers() == 0 and not UnitExists("pet")) then + local isInGroup = false + if IceHUD.WowVer >= 50000 then + isInGroup = GetNumGroupMembers() > 0 + else + isInGroup = GetNumPartyMembers() > 0 + end + if self.moduleSettings.onlyShowInGroups and (not isInGroup and not UnitExists("pet")) then self:Show(false) return end