diff --git a/changelog.md b/changelog.md index 0d68b5c..dfbf2ef 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.13.17.2: + +- Fixed Runes disappearing for Death Knights on Wrath Classic when using the dual spec feature. + v1.13.17.1: - Fixed Priests hanging on login on the retail client. diff --git a/modules/Runes.lua b/modules/Runes.lua index 1cd0e37..e084fde 100644 --- a/modules/Runes.lua +++ b/modules/Runes.lua @@ -3,6 +3,8 @@ local Runes = IceCore_CreateClass(IceElement) local IceHUD = _G.IceHUD +local RunesReturnedByMaxPower = IceHUD.WowVer >= 70000 + local CooldownFrame_SetTimer = CooldownFrame_SetTimer if CooldownFrame_Set then CooldownFrame_SetTimer = CooldownFrame_Set @@ -265,7 +267,7 @@ end -- OVERRIDE function Runes.prototype:Enable(core) - if IceHUD.WowVer >= 70000 then + if RunesReturnedByMaxPower then self.numRunes = UnitPowerMax("player", SPELL_POWER_RUNES) end @@ -283,7 +285,9 @@ function Runes.prototype:Enable(core) self:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED", "UpdateRuneColors") end self:RegisterEvent("PLAYER_ENTERING_WORLD", "EnteringWorld") - self:RegisterEvent("UNIT_MAXPOWER", "CheckMaxNumRunes") + if RunesReturnedByMaxPower then + self:RegisterEvent("UNIT_MAXPOWER", "CheckMaxNumRunes") + end if (self.moduleSettings.hideBlizz) then self:HideBlizz() diff --git a/this_version.md b/this_version.md index aec79d8..92d347a 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.13.17.2: + +- Fixed Runes disappearing for Death Knights on Wrath Classic when using the dual spec feature. + v1.13.17.1: - Fixed Priests hanging on login on the retail client.