mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Minor cleanup.
This commit is contained in:
@ -396,7 +396,7 @@ function ComboPoints.prototype:UpdateComboPoints()
|
|||||||
-- Parnic: apparently some fights have combo points while the player is in a vehicle?
|
-- Parnic: apparently some fights have combo points while the player is in a vehicle?
|
||||||
local isInVehicle = UnitHasVehicleUI("player")
|
local isInVehicle = UnitHasVehicleUI("player")
|
||||||
points = GetComboPoints(isInVehicle and "vehicle" or "player", "target")
|
points = GetComboPoints(isInVehicle and "vehicle" or "player", "target")
|
||||||
_, _, _, anticipate = UnitAura("player", AnticipationAuraName)
|
_, _, _, anticipate = UnitAura("player", AnticipationAuraName)
|
||||||
else
|
else
|
||||||
points = GetComboPoints("target")
|
points = GetComboPoints("target")
|
||||||
end
|
end
|
||||||
@ -449,9 +449,9 @@ do
|
|||||||
local _, _, _, newAntStacks = UnitAura("player", AnticipationAuraName)
|
local _, _, _, newAntStacks = UnitAura("player", AnticipationAuraName)
|
||||||
if newAntStacks ~= antStacks then
|
if newAntStacks ~= antStacks then
|
||||||
antStacks = newAntStacks
|
antStacks = newAntStacks
|
||||||
self:UpdateComboPoints()
|
self:UpdateComboPoints()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ComboPoints.prototype:AddAnticipation() -- Handles both PLAYER_TALENT_CHANGED event and activation from options or initialization.
|
function ComboPoints.prototype:AddAnticipation() -- Handles both PLAYER_TALENT_CHANGED event and activation from options or initialization.
|
||||||
@ -465,8 +465,4 @@ end
|
|||||||
|
|
||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
-- Parnic: removed the rogue-/druid-only restriction since the Malygos fight needs combo points on the drakes
|
IceHUD.ComboPoints = ComboPoints:new()
|
||||||
--local _, unitClass = UnitClass("player")
|
|
||||||
--if (unitClass == "DRUID" or unitClass == "ROGUE") then
|
|
||||||
IceHUD.ComboPoints = ComboPoints:new()
|
|
||||||
--end
|
|
||||||
|
Reference in New Issue
Block a user