Skip to content

Commit 3936d7f

Browse files
committed
Update some more deprecated aura functions
1 parent 4c0ed7e commit 3936d7f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.luacheckrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ read_globals = {
9090
"UnitClass",
9191
"UnitClassification",
9292
"UnitCreatureFamily",
93-
"UnitDebuff",
9493
"UnitExists",
9594
"UnitFactionGroup",
9695
"UnitGetIncomingHeals",

modules/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Health:UpdateAura(frame)
6262
local id = 0
6363
while( true ) do
6464
id = id + 1
65-
local name, _, _, auraType = UnitDebuff(frame.unit, id)
65+
local name, _, _, auraType = AuraUtil.UnpackAuraData(C_UnitAuras.GetDebuffDataByIndex(frame.unit, id))
6666
if( not name ) then break end
6767

6868
if( canCure[auraType] ) then

modules/highlight.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function Highlight:UpdateAura(frame)
179179
local id = 0
180180
while( true ) do
181181
id = id + 1
182-
local name, _, _, auraType = UnitDebuff(frame.unit, id)
182+
local name, _, _, auraType = AuraUtil.UnpackAuraData(C_UnitAuras.GetDebuffDataByIndex(frame.unit, id))
183183
if( not name ) then break end
184184
if( auraType == "" ) then auraType = "Enrage" end
185185

modules/tags.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,9 +1501,10 @@ local function loadAPIEvents()
15011501
["UnitIsPVPFreeForAll"] = "PLAYER_FLAGS_CHANGED UNIT_FACTION",
15021502
["UnitCastingInfo"] = "UNIT_SPELLCAST_START UNIT_SPELLCAST_STOP UNIT_SPELLCAST_FAILED UNIT_SPELLCAST_INTERRUPTED UNIT_SPELLCAST_DELAYED",
15031503
["UnitChannelInfo"] = "UNIT_SPELLCAST_CHANNEL_START UNIT_SPELLCAST_CHANNEL_STOP UNIT_SPELLCAST_CHANNEL_INTERRUPTED UNIT_SPELLCAST_CHANNEL_UPDATE",
1504-
["UnitAura"] = "UNIT_AURA",
1505-
["UnitBuff"] = "UNIT_AURA",
1506-
["UnitDebuff"] = "UNIT_AURA",
1504+
["GetAuraDataByIndex"] = "UNIT_AURA",
1505+
["GetBuffDataByIndex"] = "UNIT_AURA",
1506+
["GetDebuffDataByIndex"] = "UNIT_AURA",
1507+
["UnitAuraBySpell"] = "UNIT_AURA",
15071508
["UnitXPMax"] = "UNIT_PET_EXPERIENCE PLAYER_XP_UPDATE PLAYER_LEVEL_UP",
15081509
["UnitGetTotalAbsorbs"] = "UNIT_ABSORB_AMOUNT_CHANGED",
15091510
["UnitXP%("] = "UNIT_PET_EXPERIENCE PLAYER_XP_UPDATE PLAYER_LEVEL_UP",

0 commit comments

Comments
 (0)