AkioKoneko

Untitled

Nov 26th, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. 622x [string "--[==[ Error in 'block_animapower' ]==] ret..."]:34: bad argument #1 to 'tinsert' (table expected, got nil)
  2. [string "--[==[ Error in 'block_animapower' ]==] return function (allstates, event)
  3. if IsInJailersTower() then
  4. for _, state in pairs(allstates) do
  5. state.show = false;
  6. state.changed = true;
  7. end
  8. local powersTbl = {[1]={},[2]={},[3]={},[4]={}}
  9. for i=1, BUFF_MAX_DISPLAY do
  10. local name, icon, count, _, _, _, _, _, _, spellID = UnitAura("player", i, "MAW");
  11. local link = GetSpellLink(spellID)
  12. local rarityID = aura_env.rarityTbl[spellID]
  13.  
  14. if icon then
  15.  
  16. local tbl = {
  17. show = true,
  18. changed = true,
  19. name = name,
  20. icon = icon,
  21. progressType = "static",
  22. autoHide = false,
  23. link = link,
  24. spellID = spellID,
  25. rarity = rarityID
  26.  
  27. }
  28. if count == 0 then
  29. count = 1;
  30. end
  31. if count>1 then
  32. tbl["custom"]=count
  33. end
  34.  
  35. tinsert(powersTbl[rarityID], tbl)
  36.  
  37. end
  38. end
  39. local i = 0
  40. for _,n in pairs({4,3,2,1}) do
  41. local rarityTbl = powersTbl[n]
  42. for _, stateTbl in pairs(rarityTbl) do
  43. i=i+1
  44. stateTbl.index = i
  45. allstates["mawpower_"..stateTbl.spellID]=stateTbl
  46. end
  47.  
  48. end
  49.  
  50.  
  51.  
  52. return true
  53. end
  54.  
  55. return false
  56. end
  57.  
  58.  
  59. "]:34: in function <[string "--[==[ Error in 'block_animapower' ]==] ret..."]:1>
  60. [string "=[C]"]: in function `xpcall'
  61. [string "@WeakAuras\GenericTrigger.lua"]:541: in function <WeakAuras\GenericTrigger.lua:534>
  62. [string "@WeakAuras\GenericTrigger.lua"]:730: in function `ScanEventsInternal'
  63. [string "@WeakAuras\GenericTrigger.lua"]:691: in function `ScanEvents'
  64. [string "@WeakAuras\GenericTrigger.lua"]:837: in function <WeakAuras\GenericTrigger.lua:822>
Advertisement
Add Comment
Please, Sign In to add comment