mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50: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
|
unit = self.unit
|
||||||
end
|
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)
|
self:Show(false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user