- Threat module fixes for WoW 5.0

This commit is contained in:
Parnic
2012-06-30 20:19:25 +00:00
parent b5350965a7
commit 1afa26cf49

View File

@ -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