ElvUI WindTools

ElvUI WindTools

3M Downloads

[Bug] DeathStrikeEstimator Error

Saw249 opened this issue ยท 1 comments

commented

Describe the bug

DeathStrikeEstimator throws LUA errors

To Reproduce

Play DK

Information

  • Addon Version: 3.66
  • ElvUI Version: 13.74
  • WoW Build: 11.0.2.56162

Additional context

Message: WindTools [ERROR]
.../Modules/Combat/ClassHelper/DeathStrikeEstimator.lua:34: attempt to index local 'auraData' (a nil value)
Time: Sun Aug 18 19:13:29 2024
Count: 788
Stack: WindTools [ERROR]
.../Modules/Combat/ClassHelper/DeathStrikeEstimator.lua:34: attempt to index local 'auraData' (a nil value)
[string "@Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <Interface/AddOns/Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: this = AceEvent30Frame {
}
event = "UNIT_AURA"
events =

{
recurse = 1
events =
{
}
}

commented

change line 31 of deathstrikeestimator.lua

change function to that:

local function getPlayerAura(spell, filter)
for i = 1, 255 do
local auraData = C_UnitAuras_GetAuraDataByIndex("player", i, filter)
if (auraData) then
local name, stacks, spellId = auraData.name, auraData.applications, auraData.spellId
if not name then
return
end
if spell == spellId then
return name, stacks
end
end
end
end