diff --git a/changelog.txt b/changelog.txt index 0cfdf3e..be027bb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.12.13: +- Fixed various class power indicators using the wrong alpha visibility if the player teleported (like with a Hearthstone) when they had a target selected. + v1.12.12: - (Classic) Fixed an error when certain spell events fire (like turning in Arathi Basin tokens) with LibClassicCasterino installed. - Fixed Death Knight Runes using the wrong alpha visibility if the player teleported (like with a Hearthstone) when they had a target selected. diff --git a/modules/ClassPowerCounter.lua b/modules/ClassPowerCounter.lua index 0d0fb07..01da5ff 100644 --- a/modules/ClassPowerCounter.lua +++ b/modules/ClassPowerCounter.lua @@ -467,7 +467,7 @@ function IceClassPowerCounter.prototype:DisplayCounter() self:RegisterEvent(IceHUD.UnitPowerEvent, "UpdateRunePower") self:RegisterEvent("UNIT_DISPLAYPOWER", "UpdateRunePower") - self:RegisterEvent("PLAYER_ENTERING_WORLD", "UpdateRunePower") + self:RegisterEvent("PLAYER_ENTERING_WORLD", "EnteringWorld") if (self.moduleSettings.hideBlizz) then self:HideBlizz() @@ -484,6 +484,11 @@ function IceClassPowerCounter.prototype:Disable(core) end end +function IceClassPowerCounter.prototype:EnteringWorld() + self:TargetChanged() + self:UpdateRunePower() +end + function IceClassPowerCounter.prototype:UpdateRunePower(event, arg1, arg2) if event and (event == IceHUD.UnitPowerEvent or event == "UNIT_POWER_FREQUENT") and arg1 ~= "player" and arg1 ~= "vehicle" then return diff --git a/modules/Shards.lua b/modules/Shards.lua index f0135bc..72196dc 100644 --- a/modules/Shards.lua +++ b/modules/Shards.lua @@ -107,6 +107,7 @@ function ShardCounter.prototype:UpdateRunePower(event, arg1, arg2) end if event == "PLAYER_ENTERING_WORLD" and IceHUD.WowVer < 70000 then + self:TargetChanged() self:UpdatePowerType(event) end diff --git a/modules/Stagger.lua b/modules/Stagger.lua index 13037e4..87fac01 100644 --- a/modules/Stagger.lua +++ b/modules/Stagger.lua @@ -157,6 +157,7 @@ function StaggerBar.prototype:UpdateShown() end function StaggerBar.prototype:PLAYER_ENTERING_WORLD() + self:TargetChanged() self:UpdateStaggerBar() end diff --git a/modules/Totems.lua b/modules/Totems.lua index e16524e..689fb61 100644 --- a/modules/Totems.lua +++ b/modules/Totems.lua @@ -215,7 +215,7 @@ function Totems.prototype:Enable(core) Totems.super.prototype.Enable(self, core) self:RegisterEvent("PLAYER_TOTEM_UPDATE", "UpdateTotem"); - self:RegisterEvent("PLAYER_ENTERING_WORLD", "ResetTotemAvailability"); + self:RegisterEvent("PLAYER_ENTERING_WORLD", "EnteringWorld"); if self.moduleSettings.hideBlizz then self:HideBlizz() @@ -230,6 +230,11 @@ function Totems.prototype:Disable(core) end end +function Totems.prototype:EnteringWorld() + self:TargetChanged() + self:ResetTotemAvailability() +end + function Totems.prototype:ResetTotemAvailability() for i=1, self.numTotems do self:UpdateTotem(nil, i)