mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Added missing IsAddOnLoaded check for DruidMana
This commit is contained in:
@ -35,7 +35,7 @@ function DruidMana.prototype:Enable()
|
|||||||
SoleManax:AddUser(self.UpdateSoleManax, TRUE, self)
|
SoleManax:AddUser(self.UpdateSoleManax, TRUE, self)
|
||||||
self:UpdateSoleManax(SoleManax:GetPlayerMana())
|
self:UpdateSoleManax(SoleManax:GetPlayerMana())
|
||||||
|
|
||||||
elseif (DruidBar_OnLoad) then
|
elseif (IsAddOnLoaded("DruidBar")) then
|
||||||
self.mode = "DruidBar"
|
self.mode = "DruidBar"
|
||||||
Metrognome:Register("DruidMana", self.UpdateDruidBarMana, 0.1, self)
|
Metrognome:Register("DruidMana", self.UpdateDruidBarMana, 0.1, self)
|
||||||
Metrognome:Start("DruidMana")
|
Metrognome:Start("DruidMana")
|
||||||
@ -100,6 +100,6 @@ end
|
|||||||
|
|
||||||
-- Load us up (if we are a druid)
|
-- Load us up (if we are a druid)
|
||||||
local _, unitClass = UnitClass("player")
|
local _, unitClass = UnitClass("player")
|
||||||
if (unitClass == "DRUID") then
|
if (unitClass == "DRUID" and (IsAddOnLoaded("SoleManax") or IsAddOnLoaded("DruidBar"))) then
|
||||||
DruidMana:new()
|
DruidMana:new()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user