Advertisement
Askhay641

Counter Code

Aug 4th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. function (event, _, subEvent, _, sourceGUID, _, _, _, _, _, _, _, spellId)
  2.  
  3. if subEvent == "SPELL_CAST_SUCCESS" then
  4.  
  5. local whitelist = {
  6.  
  7. -- Fire --
  8.  
  9. [203286] = true,
  10. [190319] = true,
  11. [31661] = true,
  12. [11366] = true,
  13. [108853] = true,
  14. [2120] = true,
  15. [133] = true,
  16. [2948] = true,
  17. [235313] = true,
  18. [44457] = true,
  19. [157981] = true,
  20. [257541] = true,
  21. [153561] = true,
  22.  
  23. -- Mage --
  24.  
  25. [2139] = true,
  26. [198111] = true,
  27. [130] = true,
  28. [80353] = true,
  29. [122] = true,
  30. [34438] = true,
  31. [212653] = true,
  32. [66] = true,
  33. [118] = true,
  34. [116011] = true,
  35. [475] = true,
  36. [190336] = true,
  37. [1459] = true,
  38. [30449] = true,
  39. [113724] = true,
  40. [55342] = true,
  41.  
  42. -- TPs --
  43.  
  44. [3563] = true,
  45. [3567] = true,
  46. [3566] = true,
  47. [32272] = true,
  48. [49358] = true,
  49. [35715] = true,
  50. [53410] = true,
  51. [88344] = true,
  52. [132627] = true,
  53. [176242] = true,
  54. [193759] = true,
  55. [224869] = true,
  56. [281404] = true,
  57. [120145] = true,
  58. [3561] = true,
  59. [176248] = true,
  60. [281403] = true,
  61. [3562] = true,
  62. [32271] = true,
  63. [33690] = true,
  64.  
  65. -- Portals --
  66.  
  67. [11417] = true,
  68. [11418] = true,
  69. [11420] = true,
  70. [32267] = true,
  71. [49361] = true,
  72. [35717] = true,
  73. [53142] = true,
  74. [88346] = true,
  75. [132626] = true,
  76. [176244] = true,
  77. [224871] = true,
  78. [281402] = true,
  79. [120146] = true,
  80. [49360] = true,
  81. [176246] = true,
  82. [281400] = true,
  83. [32266] = true,
  84. [11419] = true,
  85. [11416] = true,
  86.  
  87. }
  88.  
  89. if whitelist[spellId] then
  90. aura_env.spell = spellId
  91. aura_env.count = aura_env.count + 1
  92.  
  93.  
  94. end
  95.  
  96. elseif subEvent == "SPELL_AURA_APPLIED" or subEvent == "SPELL_AURA_REFRESH" then
  97.  
  98. if sourceGUID == UnitGUID("player") then
  99. aura_env.spell = spellId
  100.  
  101. end
  102.  
  103. end
  104.  
  105. return false
  106.  
  107. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement