mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- updated SunderCount/LacerateCount modules to use the new UnitDebuff return values in wotlk properly/register the changed wotlk events
- updated SliceAndDice module to be more efficient outside of combat (avoids unnecessary OnUpdate stuff) - updated SliceAndDice module to use the new UnitBuff return values in wotlk properly/register the changed wotlk events/new combo point parameters - updated DruidMana module to update every frame in wotlk since the other mana frames need to...this still needs dogtag to be updated to work fully in wotlk - updated ComboPoints module to use the new combo point functionality and events in wotlk
This commit is contained in:
@ -126,7 +126,11 @@ function ComboPoints.prototype:Enable(core)
|
||||
ComboPoints.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "UpdateComboPoints")
|
||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
||||
if IceHUD.WowVer >= 30000 then
|
||||
self:RegisterEvent("UNIT_COMBO_POINTS", "UpdateComboPoints")
|
||||
else
|
||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateComboPoints")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -204,7 +208,12 @@ end
|
||||
|
||||
|
||||
function ComboPoints.prototype:UpdateComboPoints()
|
||||
local points = GetComboPoints("target")
|
||||
local points
|
||||
if IceHUD.WowVer >= 30000 then
|
||||
points = GetComboPoints("player", "target")
|
||||
else
|
||||
points = GetComboPoints("target")
|
||||
end
|
||||
|
||||
if (points == 0) then
|
||||
points = nil
|
||||
|
Reference in New Issue
Block a user