Skip to content

Commit

Permalink
Fixed a buff check to use C_UnitAuras
Browse files Browse the repository at this point in the history
  • Loading branch information
GovtGeek committed Nov 26, 2024
1 parent 2f10abc commit 1efde7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Outfitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4379,7 +4379,12 @@ function Outfitter:GetPlayerAuraStates()
end

while true do
local vName, vTexture, _, _, _, _, _, _, _, vSpellID = UnitBuff("player", vBuffIndex)
--local vName, vTexture, _, _, _, _, _, _, _, vSpellID = UnitBuff("player", vBuffIndex)
local auraInfo = C_UnitAuras.GetBuffDataByIndex("player", vBuffIndex)
local vName, vTexture, vSpellID
if auraInfo then
vName, vTexture, vSpellID = auraInfo.name, auraInfo.icon, auraInfo.spellId
end

if not vName then
return self.AuraStates
Expand Down

0 comments on commit 1efde7f

Please sign in to comment.