From fc49de127a77be039020b16d851eceaa0fd33121 Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 19 Aug 2015 22:00:00 -0500 Subject: [PATCH] Always use Anticipation's spell ID, not name (ticket #194) --- modules/ComboPoints.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ComboPoints.lua b/modules/ComboPoints.lua index 5409c1f..acd6422 100644 --- a/modules/ComboPoints.lua +++ b/modules/ComboPoints.lua @@ -3,7 +3,6 @@ local ComboPoints = IceCore_CreateClass(IceElement) local IceHUD = _G.IceHUD -local AnticipationAuraName = "Anticipation" local AnticipationSpellId = 114015 ComboPoints.prototype.comboSize = 20 @@ -419,7 +418,7 @@ function ComboPoints.prototype:UpdateComboPoints() else points = GetComboPoints(checkUnit, "target") end - _, _, _, anticipate = UnitAura("player", AnticipationAuraName) + _, _, _, anticipate = UnitAura("player", GetSpellInfo(AnticipationSpellId)) else points = GetComboPoints("target") end @@ -476,7 +475,7 @@ do function ComboPoints.prototype:CheckAnticipation(e, unit) -- UNIT_AURA handler if UnitIsUnit(unit, "player") then - local _, _, _, newAntStacks = UnitAura("player", AnticipationAuraName) + local _, _, _, newAntStacks = UnitAura("player", GetSpellInfo(AnticipationSpellId)) if newAntStacks ~= antStacks then antStacks = newAntStacks self:UpdateComboPoints()