mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Fixed error in Chi module
When signing in as a spec with Chi, an error was being thrown due to the graphical frames for chi not existing yet.
This commit is contained in:
@ -34,12 +34,11 @@ end
|
|||||||
|
|
||||||
function HarmonyPower.prototype:Enable(core)
|
function HarmonyPower.prototype:Enable(core)
|
||||||
self.numRunes = UnitPowerMax(self.unit, self.unitPower)
|
self.numRunes = UnitPowerMax(self.unit, self.unitPower)
|
||||||
|
self:CreateFrame()
|
||||||
|
|
||||||
HarmonyPower.super.prototype.Enable(self, core)
|
HarmonyPower.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:RegisterEvent("UNIT_POWER_FREQUENT", "UpdateRunePower")
|
self:RegisterEvent("UNIT_POWER_FREQUENT", "UpdateRunePower")
|
||||||
|
|
||||||
self:Redraw()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)
|
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)
|
||||||
|
Reference in New Issue
Block a user