Skip to content

Commit

Permalink
Update some more deprecated aura functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Aug 15, 2024
1 parent 4c0ed7e commit 3936d7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ read_globals = {
"UnitClass",
"UnitClassification",
"UnitCreatureFamily",
"UnitDebuff",
"UnitExists",
"UnitFactionGroup",
"UnitGetIncomingHeals",
Expand Down
2 changes: 1 addition & 1 deletion modules/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Health:UpdateAura(frame)
local id = 0
while( true ) do
id = id + 1
local name, _, _, auraType = UnitDebuff(frame.unit, id)
local name, _, _, auraType = AuraUtil.UnpackAuraData(C_UnitAuras.GetDebuffDataByIndex(frame.unit, id))
if( not name ) then break end

if( canCure[auraType] ) then
Expand Down
2 changes: 1 addition & 1 deletion modules/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function Highlight:UpdateAura(frame)
local id = 0
while( true ) do
id = id + 1
local name, _, _, auraType = UnitDebuff(frame.unit, id)
local name, _, _, auraType = AuraUtil.UnpackAuraData(C_UnitAuras.GetDebuffDataByIndex(frame.unit, id))
if( not name ) then break end
if( auraType == "" ) then auraType = "Enrage" end

Expand Down
7 changes: 4 additions & 3 deletions modules/tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1501,9 +1501,10 @@ local function loadAPIEvents()
["UnitIsPVPFreeForAll"] = "PLAYER_FLAGS_CHANGED UNIT_FACTION",
["UnitCastingInfo"] = "UNIT_SPELLCAST_START UNIT_SPELLCAST_STOP UNIT_SPELLCAST_FAILED UNIT_SPELLCAST_INTERRUPTED UNIT_SPELLCAST_DELAYED",
["UnitChannelInfo"] = "UNIT_SPELLCAST_CHANNEL_START UNIT_SPELLCAST_CHANNEL_STOP UNIT_SPELLCAST_CHANNEL_INTERRUPTED UNIT_SPELLCAST_CHANNEL_UPDATE",
["UnitAura"] = "UNIT_AURA",
["UnitBuff"] = "UNIT_AURA",
["UnitDebuff"] = "UNIT_AURA",
["GetAuraDataByIndex"] = "UNIT_AURA",
["GetBuffDataByIndex"] = "UNIT_AURA",
["GetDebuffDataByIndex"] = "UNIT_AURA",
["UnitAuraBySpell"] = "UNIT_AURA",
["UnitXPMax"] = "UNIT_PET_EXPERIENCE PLAYER_XP_UPDATE PLAYER_LEVEL_UP",
["UnitGetTotalAbsorbs"] = "UNIT_ABSORB_AMOUNT_CHANGED",
["UnitXP%("] = "UNIT_PET_EXPERIENCE PLAYER_XP_UPDATE PLAYER_LEVEL_UP",
Expand Down

0 comments on commit 3936d7f

Please sign in to comment.