Fixed Runes not showing up on login

This commit is contained in:
Parnic
2016-05-26 23:41:15 -05:00
parent f9b4d7acbb
commit b9cfe48d03

View File

@ -42,7 +42,6 @@ function Runes.prototype:init()
self:SetDefaultColor("Runes"..self.runeNames[RUNETYPE_LEGION], 204, 204, 255)
end
self.scalingEnabled = true
self.numRunes = UnitPowerMax("player", SPELL_POWER_RUNES)
end
@ -204,6 +203,8 @@ end
-- OVERRIDE
function Runes.prototype:Enable(core)
self.numRunes = UnitPowerMax("player", SPELL_POWER_RUNES)
Runes.super.prototype.Enable(self, core)
self:RegisterEvent("RUNE_POWER_UPDATE", "UpdateRunePower")