mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
UNIT_DISPLAYPOWER is a more foolproof way of checking if we need AltMana displayed or not
This commit is contained in:
@ -29,13 +29,15 @@ function PlayerAltMana.prototype:GetDefaultSettings()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GetEventsToRegister()
|
function GetEventsToRegister()
|
||||||
if unitClass == "PRIEST" then
|
return {"UNIT_DISPLAYPOWER"}
|
||||||
return {"PLAYER_TALENT_UPDATE"}
|
--[[ if unitClass == "PRIEST" then
|
||||||
|
return {"PLAYER_SPECIALIZATION_CHANGED"}
|
||||||
elseif unitClass == "SHAMAN" then
|
elseif unitClass == "SHAMAN" then
|
||||||
return {"PLAYER_TALENT_UPDATE"}
|
return {"PLAYER_SPECIALIZATION_CHANGED"}
|
||||||
elseif unitClass == "DRUID" then
|
elseif unitClass == "DRUID" then
|
||||||
return {"UPDATE_SHAPESHIFT_FORM"}
|
return {"UPDATE_SHAPESHIFT_FORM"}
|
||||||
end
|
end
|
||||||
|
]]-- probably not necessary, but could use as a fallback
|
||||||
end
|
end
|
||||||
|
|
||||||
function PlayerAltMana.prototype:Enable(core)
|
function PlayerAltMana.prototype:Enable(core)
|
||||||
|
Reference in New Issue
Block a user