WeakAuras

WeakAuras

200M Downloads

Lua Error on WeakAuras.SpecRolePositionForUnit()

Reloe opened this issue ยท 0 comments

commented

Description

Calling WeakAuras.SpecRolePositionForUnit() on a unit that does not have an addon that comes with LibSpecialization will result in an error.

WeakAuras Version

WeakAuras 5.0.5

World of Warcraft Flavor

Beta (Dragonflight)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

1x ...erface/AddOns/WeakAuras/LibSpecializationWrapper.lua:106: bad argument #1 to 'unpack' (table expected, got nil)
[string "=[C]"]: in function unpack' [string "@Interface/AddOns/WeakAuras/LibSpecializationWrapper.lua"]:106: in function <...erface/AddOns/WeakAuras/LibSpecializationWrapper.lua:102> [string "=(tail call)"]: ? [string "@Interface/SharedXML/Dump.lua"]:397: in function DevTools_DumpCommand'
[string "@Interface/FrameXML/ChatFrame.lua"]:2427: in function ?' [string "@Interface/FrameXML/ChatFrame.lua"]:5224: in function ChatEdit_ParseText'
[string "@Interface/FrameXML/ChatFrame.lua"]:4888: in function ChatEdit_SendText' [string "@Interface/FrameXML/ChatFrame.lua"]:4924: in function ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:127_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:127_OnEnterPressed"]:1>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"

Reproduction Steps

Get in group with someone that doesn't have LibSpecialization
Target them and do /dump WeakAuras.SpecRolePositionForUnit("target")

Last Good Version

No response

Screenshots

No response

Export String

No response