Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function (event, _, subEvent, _, sourceGUID, _, _, _, _, _, _, _, spellId)
- if subEvent == "SPELL_CAST_SUCCESS" then
- local whitelist = {
- -- Fire --
- [203286] = true,
- [190319] = true,
- [31661] = true,
- [11366] = true,
- [108853] = true,
- [2120] = true,
- [133] = true,
- [2948] = true,
- [235313] = true,
- [44457] = true,
- [157981] = true,
- [257541] = true,
- [153561] = true,
- -- Mage --
- [2139] = true,
- [198111] = true,
- [130] = true,
- [80353] = true,
- [122] = true,
- [34438] = true,
- [212653] = true,
- [66] = true,
- [118] = true,
- [116011] = true,
- [475] = true,
- [190336] = true,
- [1459] = true,
- [30449] = true,
- [113724] = true,
- [55342] = true,
- -- TPs --
- [3563] = true,
- [3567] = true,
- [3566] = true,
- [32272] = true,
- [49358] = true,
- [35715] = true,
- [53410] = true,
- [88344] = true,
- [132627] = true,
- [176242] = true,
- [193759] = true,
- [224869] = true,
- [281404] = true,
- [120145] = true,
- [3561] = true,
- [176248] = true,
- [281403] = true,
- [3562] = true,
- [32271] = true,
- [33690] = true,
- -- Portals --
- [11417] = true,
- [11418] = true,
- [11420] = true,
- [32267] = true,
- [49361] = true,
- [35717] = true,
- [53142] = true,
- [88346] = true,
- [132626] = true,
- [176244] = true,
- [224871] = true,
- [281402] = true,
- [120146] = true,
- [49360] = true,
- [176246] = true,
- [281400] = true,
- [32266] = true,
- [11419] = true,
- [11416] = true,
- }
- if whitelist[spellId] then
- aura_env.spell = spellId
- aura_env.count = aura_env.count + 1
- end
- elseif subEvent == "SPELL_AURA_APPLIED" or subEvent == "SPELL_AURA_REFRESH" then
- if sourceGUID == UnitGUID("player") then
- aura_env.spell = spellId
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement