Skip to content

Commit

Permalink
Fixed paladin and mage mana
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Dec 15, 2020
1 parent acc1148 commit 55ad119
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions NugEnergy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -487,40 +487,6 @@ function NugEnergy.Initialize(self)
end
self:UNIT_MAXPOWER()

elseif class == "MAGE" and NugEnergyDB.mana then
self:RegisterEvent("SPELLS_CHANGED")
self.SPELLS_CHANGED = function(self)
if GetSpecialization() == 1 and NugEnergyDB.mana then
PowerFilter = "MANA"
PowerTypeIndex = Enum.PowerType.Mana
GetPower = ManaBarGetPower()
self:SetNormalColor()
self:RegisterUnitEvent("UNIT_MAXPOWER", "player")
self:RegisterUnitEvent("UNIT_POWER_FREQUENT", "player")
else
self:Disable()
end
self:UPDATE_STEALTH()
end
self:SPELLS_CHANGED()

elseif class == "PALADIN" and NugEnergyDB.mana then
self:RegisterEvent("SPELLS_CHANGED")
self.SPELLS_CHANGED = function(self)
if GetSpecialization() == 1 and NugEnergyDB.mana then
PowerFilter = "MANA"
PowerTypeIndex = Enum.PowerType.Mana
GetPower = ManaBarGetPower()
self:SetNormalColor()
self:RegisterUnitEvent("UNIT_MAXPOWER", "player")
self:RegisterUnitEvent("UNIT_POWER_FREQUENT", "player")
else
self:Disable()
end
self:UPDATE_STEALTH()
end
self:SPELLS_CHANGED()

elseif class == "DRUID" then
self:RegisterEvent("UNIT_DISPLAYPOWER")
self:RegisterEvent("UPDATE_STEALTH")
Expand Down

0 comments on commit 55ad119

Please sign in to comment.