From b3897f279eeab7dda9f8c80877c0f54cb3b2a0ac Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 21 Dec 2013 02:25:28 +0000 Subject: [PATCH] - Minor cleanup. --- modules/ComboPoints.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/ComboPoints.lua b/modules/ComboPoints.lua index baa3100..fb26b91 100644 --- a/modules/ComboPoints.lua +++ b/modules/ComboPoints.lua @@ -396,7 +396,7 @@ function ComboPoints.prototype:UpdateComboPoints() -- Parnic: apparently some fights have combo points while the player is in a vehicle? local isInVehicle = UnitHasVehicleUI("player") points = GetComboPoints(isInVehicle and "vehicle" or "player", "target") - _, _, _, anticipate = UnitAura("player", AnticipationAuraName) + _, _, _, anticipate = UnitAura("player", AnticipationAuraName) else points = GetComboPoints("target") end @@ -449,9 +449,9 @@ do local _, _, _, newAntStacks = UnitAura("player", AnticipationAuraName) if newAntStacks ~= antStacks then antStacks = newAntStacks - self:UpdateComboPoints() + self:UpdateComboPoints() end - end + end end function ComboPoints.prototype:AddAnticipation() -- Handles both PLAYER_TALENT_CHANGED event and activation from options or initialization. @@ -465,8 +465,4 @@ end -- Load us up --- Parnic: removed the rogue-/druid-only restriction since the Malygos fight needs combo points on the drakes ---local _, unitClass = UnitClass("player") ---if (unitClass == "DRUID" or unitClass == "ROGUE") then - IceHUD.ComboPoints = ComboPoints:new() ---end +IceHUD.ComboPoints = ComboPoints:new()