11.0.0 IsSpellBookItemInRange error
reiyooki opened this issue ยท 4 comments
Game and Plater version
Plater-v583 - DF v551 - 11.0.0
Game Version: 11.0.0.55818
Describe the bug
- Steps to Reproduce (what did you do to make the bug happen):
Simply idling in Valdrakken near any visible nameplate, toggling nameplates off/on, etc. will cause the error below. Manually updated LibRangeCheck to see if that helped, and it didn't change.
Lua Error
69x bad argument #1 to '?' (not a numerical value - Usage: local inRange = C_SpellBook.IsSpellBookItemInRange(spellBookItem [, targetUnit]))
[string "=[C]"]: in function `IsSpellBookItemInRange'
[string "@Plater/libs/LibRangeCheck-3.0-19/LibRangeCheck-3.0.lua"]:89: in function <.../Plater/libs/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:88>
[string "@Plater/libs/LibRangeCheck-3.0-19/LibRangeCheck-3.0.lua"]:573: in function `rangeChecker'
[string "@Plater/Plater.lua"]:867: in function `CheckRange'
[string "@Plater/Plater.lua"]:6950: in function `UpdateTarget'
[string "@Plater/Plater.lua"]:8079: in function `UpdatePlateFrame'
[string "@Plater/Plater.lua"]:3693: in function `func'
[string "@Plater/Plater.lua"]:3962: in function <Plater/Plater.lua:3958>
Locals:
(*temporary) = "bad argument #1 to '?' (not a numerical value - Usage: local inRange = C_SpellBook.IsSpellBookItemInRange(spellBookItem [, targetUnit]))"
@reiyooki while waiting you can use this quickfix in the meantime.
Open Interface\AddOns\Plater\libs\LibRangeCheck-3.0\LibRangeCheck-3.0.lua
and in line 89 replace
local result = C_SpellBook.IsSpellBookItemInRange(index, spellBank, unit)
with
local result = C_SpellBook.IsSpellBookItemInRange(index, 0, unit)
Workaround but no proper fix. "Player"
would likely be the correct setup.
Waiting for WA team to fix the lib.
Fixed with WeakAuras/LibRangeCheck-3.0@0531c8a and Plater-v583a