Fixed Death Runes never showing up on Live

UnitPowerMax for SPELL_POWER_RUNES is 0 on live, so numRunes was 0 which was causing UpdateRuneType to throw out the update.
This commit is contained in:
Parnic
2016-06-07 00:34:31 -05:00
parent f214c945af
commit 702ebbd86a

View File

@ -208,7 +208,9 @@ end
-- OVERRIDE
function Runes.prototype:Enable(core)
self.numRunes = UnitPowerMax("player", SPELL_POWER_RUNES)
if IceHUD.WowVer >= 70000 then
self.numRunes = UnitPowerMax("player", SPELL_POWER_RUNES)
end
Runes.super.prototype.Enable(self, core)