mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Threat module fixes for WoW 5.0
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user