Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2x [string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]..."]:17: bad argument #2 to 'format' (string expected, got nil)
- [string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]==] return function(event)
- -- gather info
- local specID, specName = GetSpecializationInfo(GetSpecialization())
- local class, classFileName = UnitClass("player")
- local classColor = ("|c%s%s"):format(RAID_CLASS_COLORS[classFileName].colorStr, class)
- local nagMessage = "Av's SpellQueueWindow: Set to %s: %s (%i)"
- -- handle events
- if event == "PLAYER_ENTERING_WORLD" or event == "ACTIVE_TALENT_GROUP_CHANGED" then
- -- we always update SQW
- local specSQW = aura_env.config[classFileName][tostring(specID)]
- SetCVar("SpellQueueWindow", tonumber(specSQW))
- -- but only tell the player about it, if we actually changed specs
- if (aura_env.LastSpecID ~= specID) then
- print(nagMessage:format(classColor, specName, specSQW))
- aura_env.LastSpecID = specID
- end
- elseif event == "PLAYER_LOGOUT" then
- -- reset SQW to default on logout
- SetCVar("SpellQueueWindow", 400)
- end
- end"]:17: in function <[string "--[==[ Error in 'Av_AutoSpellQueueWindow' ]..."]:1>
- [string "=[C]"]: in function `xpcall'
- [string "@WeakAuras\GenericTrigger.lua"]:598: 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>
Add Comment
Please, Sign In to add comment