Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 622x [string "--[==[ Error in 'block_animapower' ]==] ret..."]:34: bad argument #1 to 'tinsert' (table expected, got nil)
- [string "--[==[ Error in 'block_animapower' ]==] return function (allstates, event)
- if IsInJailersTower() then
- for _, state in pairs(allstates) do
- state.show = false;
- state.changed = true;
- end
- local powersTbl = {[1]={},[2]={},[3]={},[4]={}}
- for i=1, BUFF_MAX_DISPLAY do
- local name, icon, count, _, _, _, _, _, _, spellID = UnitAura("player", i, "MAW");
- local link = GetSpellLink(spellID)
- local rarityID = aura_env.rarityTbl[spellID]
- if icon then
- local tbl = {
- show = true,
- changed = true,
- name = name,
- icon = icon,
- progressType = "static",
- autoHide = false,
- link = link,
- spellID = spellID,
- rarity = rarityID
- }
- if count == 0 then
- count = 1;
- end
- if count>1 then
- tbl["custom"]=count
- end
- tinsert(powersTbl[rarityID], tbl)
- end
- end
- local i = 0
- for _,n in pairs({4,3,2,1}) do
- local rarityTbl = powersTbl[n]
- for _, stateTbl in pairs(rarityTbl) do
- i=i+1
- stateTbl.index = i
- allstates["mawpower_"..stateTbl.spellID]=stateTbl
- end
- end
- return true
- end
- return false
- end
- "]:34: in function <[string "--[==[ Error in 'block_animapower' ]==] ret..."]:1>
- [string "=[C]"]: in function `xpcall'
- [string "@WeakAuras\GenericTrigger.lua"]:541: in function <WeakAuras\GenericTrigger.lua:534>
- [string "@WeakAuras\GenericTrigger.lua"]:730: in function `ScanEventsInternal'
- [string "@WeakAuras\GenericTrigger.lua"]:691: in function `ScanEvents'
- [string "@WeakAuras\GenericTrigger.lua"]:837: in function <WeakAuras\GenericTrigger.lua:822>
Advertisement
Add Comment
Please, Sign In to add comment