Player Level load condition throws lua error
arcticnw opened this issue ยท 1 comments
Describe the bug
Setting 'Player Level' load condition with operators <, <=, > or >= will throw Lua error due to comparing number with string.
Do you have an error log of what happened?
Time: Sun Aug 11 02:20:35 2019
Count: 3
Stack: [string "--[[ Error in 'Unknown' ]] return function(..."]:3: attempt to compare string with number
[string "--[[ Error in 'Unknown' ]] return function(..."]:3: in function 'loadFunc'
Interface\AddOns\WeakAuras\WeakAuras.lua:1943: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:1844>
Interface\AddOns\WeakAuras\WeakAuras.lua:2004: in function 'ScanForLoads'
...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:462: in function <...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:456>
[C]: ?
...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:51: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:49>
...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:843: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:664>
[C]: ?
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:72: in function <...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:70>
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:287: in function 'Fire'
...as\Libs\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:442: in function <...as\Libs\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:433>
[C]: ?
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:72: in function <...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:70>
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:287: in function 'Fire'
...s\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:351: in function <...s\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:341>
Locals: <none>
To Reproduce
Make a weak aura.
Go to "Load" tab.
Check Player Level checkbox, set Operator to "<" and"Player Level textbox to 40.
Observe an Lua error message.
Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes.
Which version of WeakAuras are you using?
WeakAura 2.14.0-beta2