mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
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:
@ -57,6 +57,9 @@ function PlayerAltMana.prototype:Disable(core)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ShouldShow(unit)
|
function ShouldShow(unit)
|
||||||
|
if unitClass == "MONK" then
|
||||||
|
return GetSpecialization() == SPEC_MONK_MISTWEAVER
|
||||||
|
end
|
||||||
return UnitPowerType(unit) ~= SPELL_POWER_MANA
|
return UnitPowerType(unit) ~= SPELL_POWER_MANA
|
||||||
--[[ if unitClass == "PRIEST" then
|
--[[ if unitClass == "PRIEST" then
|
||||||
return UnitPowerType(unit) == SPELL_POWER_INSANITY
|
return UnitPowerType(unit) == SPELL_POWER_INSANITY
|
||||||
@ -86,6 +89,7 @@ end
|
|||||||
|
|
||||||
if (unitClass == "PRIEST" and IceHUD.WowVer >= 70000)
|
if (unitClass == "PRIEST" and IceHUD.WowVer >= 70000)
|
||||||
or (unitClass == "DRUID")
|
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()
|
IceHUD.PlayerAltMana = PlayerAltMana:new()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user