Only show AltMana for mistweaver monks in pre-7.0

I realized that my updates changed how the module worked for pre-7.0 users who were using MonkMana
This commit is contained in:
Parnic
2016-05-28 02:49:42 -05:00
parent 0188a3fc0b
commit 6f0ddb7f6d

View File

@ -57,6 +57,9 @@ function PlayerAltMana.prototype:Disable(core)
end
function ShouldShow(unit)
if unitClass == "MONK" then
return GetSpecialization() == SPEC_MONK_MISTWEAVER
end
return UnitPowerType(unit) ~= SPELL_POWER_MANA
--[[ if unitClass == "PRIEST" then
return UnitPowerType(unit) == SPELL_POWER_INSANITY
@ -86,6 +89,7 @@ end
if (unitClass == "PRIEST" and IceHUD.WowVer >= 70000)
or (unitClass == "DRUID")
or (unitClass == "SHAMAN" and IceHUD.WowVer >= 70000) then
or (unitClass == "SHAMAN" and IceHUD.WowVer >= 70000)
or (unitClass == "MONK" and IceHUD.WowVer < 70000) then
IceHUD.PlayerAltMana = PlayerAltMana:new()
end