Benik / BenikUI

BenikUI is an external ElvUI mod, adding different frame style and new features like detatched portraits and dashboards.
https://www.curseforge.com/wow/addons/benikui
7 stars 6 forks source link

Kill an enemy NPC, LUA error #43

Closed justinnichols closed 1 year ago

justinnichols commented 1 year ago

Describe the bug and post the error message, if there is one After I kill an enemy NPC, I receive the LUA error listed below. The main LUA error message is: ...dOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua:166: attempt to index field 'BadDispels' (a nil value)

To Reproduce

  1. Log in with any character
  2. Defeat an NPC Enemy

Expected behavior No LUA error to occur.

Please include the addon and game versions:

Enabled Addons

Additional context

Message: ...dOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua:166: attempt to index field 'BadDispels' (a nil value)
Time: Wed May 24 19:24:36 2023
Count: 874
Stack: ...dOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua:166: attempt to index field 'BadDispels' (a nil value)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua"]:166: in function `PostUpdateButton'
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:301: in function <...e/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua:170>
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:353: in function <...e/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua:345>
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:516: in function `func'
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1039: in function `run'
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1069: in function `execute'
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1089: in function `update'
[string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1120: in function <Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua:1118>

Locals: (*temporary) = defined =[C]:-1
Ommos commented 1 year ago

Message: ...dOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua:166: attempt to index field 'BadDispels' (a nil value) Time: Wed May 24 23:46:50 2023 Count: 851 Stack: ...dOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua:166: attempt to index field 'BadDispels' (a nil value)

[string "@Interface/AddOns/ElvUI_BenikUI/modules/unitframes/unitframes.lua"]:166: in function PostUpdateButton' [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:301: in function <...e/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua:170> [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:353: in function <...e/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua:345> [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/elements/auras.lua"]:516: in functionfunc' [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1039: in function run' [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1069: in functionexecute' [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1089: in function `update' [string "@Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua"]:1120: in function <Interface/AddOns/ElvUI_Libraries/Core/oUF/ouf.lua:1118>

Locals: (*temporary) = defined =[C]:-1

This is the error I get after killing an NPC

Benik commented 1 year ago

It's fixed on the dev version. I will push a new version as soon as l come back from work

Benik commented 1 year ago

Fixed on v4.38 for DF and v2.14 for Wrath/Classic

justinnichols commented 1 year ago

Thanks so much, @Benik !