Skip to content

Commit

Permalink
[Statuses\Heals] Fix Loading in Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed May 31, 2024
1 parent afc6416 commit 50bd0d4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Statuses/Heals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ function PlexusStatusHeals:OnStatusEnable(status)
if status == "alert_heals" then
self:RegisterEvent("UNIT_HEALTH", "UpdateUnit")
self:RegisterEvent("UNIT_MAXHEALTH", "UpdateUnit")
if Plexus:IsRetailWow() or Plexus:IsTBCWow() or Plexus:IsWrathWow() or Plexus:IsCataWow() then
self:RegisterEvent("UNIT_HEAL_PREDICTION", "UpdateUnit")
end
if Plexus:IsClassicWow() or Plexus:IsTBCWow() or Plexus:IsWrathWow() or Plexus:IsCataWow() then
self:RegisterEvent("UNIT_HEAL_PREDICTION", "UpdateUnit")
if not Plexus:IsRetailWow() then
HealComm = _G.LibStub:GetLibrary("LibHealComm-4.0", true) --luacheck: ignore 111
if HealComm then
local function HealComm_Heal_Update()
Expand All @@ -107,10 +105,8 @@ function PlexusStatusHeals:OnStatusDisable(status)
if status == "alert_heals" then
self:UnregisterEvent("UNIT_HEALTH")
self:UnregisterEvent("UNIT_MAXHEALTH")
if Plexus:IsRetailWow() or Plexus:IsTBCWow() or Plexus:IsWrathWow() or Plexus:IsCataWow() then
self:UnregisterEvent("UNIT_HEAL_PREDICTION")
end
if Plexus:IsClassicWow() or Plexus:IsTBCWow() or Plexus:IsWrathWow() or Plexus:IsCataWow() then
self:UnregisterEvent("UNIT_HEAL_PREDICTION")
if not Plexus:IsRetailWow() then
HealComm = _G.LibStub:GetLibrary("LibHealComm-4.0", true) --luacheck: ignore 111
if HealComm then
HealComm.UnregisterCallback(self, 'HealComm_HealStarted')
Expand Down

0 comments on commit 50bd0d4

Please sign in to comment.