diff --git a/modules/RollTheBones.lua b/modules/RollTheBones.lua index 89afc74..f932ea1 100644 --- a/modules/RollTheBones.lua +++ b/modules/RollTheBones.lua @@ -45,6 +45,18 @@ if C_Spell and C_Spell.GetSpellName then GetSpellName = C_Spell.GetSpellName end +local UnitBuff = UnitBuff +if not UnitBuff and C_UnitAuras and AuraUtil then + UnitBuff = function(unitToken, index, filter) + local auraData = C_UnitAuras.GetBuffDataByIndex(unitToken, index, filter) + if not auraData then + return nil + end + + return AuraUtil.UnpackAuraData(auraData) + end +end + -- Constructor -- function RollTheBones.prototype:init() RollTheBones.super.prototype.init(self, "RollTheBones", "player") diff --git a/modules/SliceAndDice.lua b/modules/SliceAndDice.lua index 3888b5e..9f82f12 100644 --- a/modules/SliceAndDice.lua +++ b/modules/SliceAndDice.lua @@ -53,6 +53,18 @@ if Enum and Enum.PowerType then SPELL_POWER_COMBO_POINTS = Enum.PowerType.ComboPoints end +local UnitBuff = UnitBuff +if not UnitBuff and C_UnitAuras and AuraUtil then + UnitBuff = function(unitToken, index, filter) + local auraData = C_UnitAuras.GetBuffDataByIndex(unitToken, index, filter) + if not auraData then + return nil + end + + return AuraUtil.UnpackAuraData(auraData) + end +end + -- Constructor -- function SliceAndDice.prototype:init() SliceAndDice.super.prototype.init(self, "SliceAndDice", "player") diff --git a/modules/Stagger.lua b/modules/Stagger.lua index 31e7e01..5768446 100644 --- a/modules/Stagger.lua +++ b/modules/Stagger.lua @@ -42,6 +42,18 @@ if C_Spell and C_Spell.GetSpellName then GetSpellName = C_Spell.GetSpellName end +local UnitDebuff = UnitDebuff +if not UnitDebuff and C_UnitAuras and AuraUtil then + UnitDebuff = function(unitToken, index, filter) + local auraData = C_UnitAuras.GetDebuffDataByIndex(unitToken, index, filter) + if not auraData then + return nil + end + + return AuraUtil.UnpackAuraData(auraData) + end +end + StaggerBar.prototype.StaggerDuration = 0 StaggerBar.prototype.StaggerEndTime = 0 diff --git a/modules/TargetOfTarget.lua b/modules/TargetOfTarget.lua index b338de0..8504adb 100644 --- a/modules/TargetOfTarget.lua +++ b/modules/TargetOfTarget.lua @@ -4,6 +4,18 @@ local DogTag = nil local TargetOfTarget = IceCore_CreateClass(IceElement) +local UnitDebuff = UnitDebuff +if not UnitDebuff and C_UnitAuras and AuraUtil then + UnitDebuff = function(unitToken, index, filter) + local auraData = C_UnitAuras.GetDebuffDataByIndex(unitToken, index, filter) + if not auraData then + return nil + end + + return AuraUtil.UnpackAuraData(auraData) + end +end + TargetOfTarget.prototype.stackedDebuffs = nil TargetOfTarget.prototype.buffSize = nil TargetOfTarget.prototype.height = nil