LUA Error enemis.lua #613


Open
  • Sinner06 created this issue Jan 3, 2021

    Is there a fix for this?

     

    Message: Interface\AddOns\Skada\modules\Enemies.lua:18: Usage: local className, classFilename, classID = UnitClass(unit)
    Time: Sun Jan 3 12:22:31 2021
    Count: 1
    Stack: Interface\AddOns\Skada\modules\Enemies.lua:18: Usage: local className, classFilename, classID = UnitClass(unit)
    [string "=[C]"]: ?
    [string "=[C]"]: in function `UnitClass'
    [string "@Interface\AddOns\Skada\modules\Enemies.lua"]:18: in function <Interface\AddOns\Skada\modules\Enemies.lua:15>
    [string "@Interface\AddOns\Skada\modules\Enemies.lua"]:40: in function <Interface\AddOns\Skada\modules\Enemies.lua:33>
    [string "@Interface\AddOns\Skada\modules\Enemies.lua"]:107: in function `func'
    [string "@Interface\AddOns\Skada\Skada.lua"]:1854: in function <Interface\AddOns\Skada\Skada.lua:1747>
    [string "@Interface\AddOns\Skada\Skada.lua"]:1903: in function <Interface\AddOns\Skada\Skada.lua:1902>

    Locals:

  • Cobalt747 posted a comment Jan 8, 2021

     you can change this string to
    local _, playerClass, _ = UnitClass(name)


To post a comment, please login or register a new account.