Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.13 KB | None | 0 0
  1.  
  2. function (_, _, eventType, _, _, sourceName, _, _, _, destName, _, _, spellID, spellName)
  3.  
  4. if (not UnitInParty(sourceName)) then return false end
  5.  
  6. aura_env.GADuration = aura_env.GADuration or 0 --initializes GADuration
  7.  
  8. -- INTERRUPTS --
  9.  
  10. if(spellID == 1766 and eventType == "SPELL_CAST_SUCCESS") then
  11. -- Kick --
  12. if (_interrupts_rogues == nil) then _interrupts_rogues = { } end
  13. if (_interrupts_rogues[sourceName] == nil) then _interrupts_rogues[sourceName] = { } end
  14.  
  15. _interrupts_rogues[sourceName]["Kick"] = GetTime() + 15;
  16.  
  17. elseif(spellID == 6552 and eventType == "SPELL_CAST_SUCCESS") then
  18. -- Pummel --
  19. if (_interrupts_warriors == nil) then _interrupts_warriors = { } end
  20. if (_interrupts_warriors[sourceName] == nil) then _interrupts_warriors[sourceName] = { } end
  21.  
  22. _interrupts_warriors[sourceName]["Pummel"] = GetTime() + 15;
  23.  
  24. elseif (spellID == 106839 and eventType == "SPELL_CAST_SUCCESS") then
  25. -- Skull Bash --
  26. if (_interrupts_druids == nil) then _interrupts_druids = { } end
  27. if (_interrupts_druids[sourceName] == nil) then _interrupts_druids[sourceName] = { } end
  28.  
  29. _interrupts_druids[sourceName]["S-Bash"] = GetTime() + 15;
  30.  
  31. elseif(spellID == 47528 and eventType == "SPELL_CAST_SUCCESS") then
  32. -- Mind Freeze --
  33. if (_interrupts_dks == nil) then _interrupts_dks = { } end
  34. if (_interrupts_dks[sourceName] == nil) then _interrupts_dks[sourceName] = { } end
  35.  
  36. _interrupts_dks[sourceName]["M-Freeze"] = GetTime() + 15;
  37.  
  38. elseif(spellID == 183752 and eventType == "SPELL_CAST_SUCCESS") then
  39. -- Consume Magic --
  40. if (_interrupts_dhs == nil) then _interrupts_dhs = { } end
  41. if (_interrupts_dhs[sourceName] == nil) then _interrupts_dhs[sourceName] = { } end
  42.  
  43. _interrupts_dhs[sourceName]["Consume"] = GetTime() + 15;
  44.  
  45. elseif(spellID == 96231 and eventType == "SPELL_CAST_SUCCESS") then
  46. -- Rebuke --
  47. if (_interrupts_paladins == nil) then _interrupts_paladins = { } end
  48. if (_interrupts_paladins[sourceName] == nil) then _interrupts_paladins[sourceName] = { } end
  49.  
  50. _interrupts_paladins[sourceName]["Rebuke"] = GetTime() + 15;
  51.  
  52. elseif (spellID == 57994 and eventType == "SPELL_CAST_SUCCESS") then
  53. -- Wind Shear --
  54. if (_interrupts_shamans == nil) then _interrupts_shamans = { } end
  55. if (_interrupts_shamans[sourceName] == nil) then _interrupts_shamans[sourceName] = { } end
  56.  
  57. _interrupts_shamans[sourceName]["W-Shear"] = GetTime() + 12;
  58.  
  59. elseif(spellID == 116705 and eventType == "SPELL_CAST_SUCCESS") then
  60. -- Spear Hand Strike --
  61. if (_interrupts_monks == nil) then _interrupts_monks = { } end
  62. if (_interrupts_monks[sourceName] == nil) then _interrupts_monks[sourceName] = { } end
  63.  
  64. _interrupts_monks[sourceName]["S-Strike"] = GetTime() + 15;
  65.  
  66. elseif(spellID == 187707 and eventType == "SPELL_CAST_SUCCESS") then
  67. -- Muzzle --
  68. if (_interrupts_hunters == nil) then _interrupts_hunters = { } end
  69. if (_interrupts_hunters[sourceName] == nil) then _interrupts_hunters[sourceName] = { } end
  70.  
  71. _interrupts_hunters[sourceName]["Muzzle"] = GetTime() + 15;
  72.  
  73. elseif(spellID == 147362 and eventType == "SPELL_CAST_SUCCESS") then
  74. -- Counter Shot --
  75. if (_interrupts_hunters == nil) then _interrupts_hunters = { } end
  76. if (_interrupts_hunters[sourceName] == nil) then _interrupts_hunters[sourceName] = { } end
  77.  
  78. _interrupts_hunters[sourceName]["C-Shot"] = GetTime() + 24;
  79.  
  80. elseif (spellID == 2139 and eventType == "SPELL_CAST_SUCCESS") then
  81. -- Counterspell --
  82. if (_interrupts_mages == nil) then _interrupts_mages = { } end
  83. if (_interrupts_mages[sourceName] == nil) then _interrupts_mages[sourceName] = { } end
  84.  
  85. _interrupts_mages[sourceName]["C-Spell"] = GetTime() + 24;
  86.  
  87. elseif (spellID == 15487 and eventType == "SPELL_CAST_SUCCESS") then
  88. -- Priest: Silence --
  89. if (_interrupts_priests == nil) then _interrupts_priests = { } end
  90. if (_interrupts_priests[sourceName] == nil) then _interrupts_priests[sourceName] = { } end
  91.  
  92. _interrupts_priests[sourceName]["Silence"] = GetTime() + 45;
  93.  
  94. elseif (spellID == 78675 and eventType == "SPELL_CAST_SUCCESS") then
  95. -- Solar Beam --
  96. if (_interrupts_druids == nil) then _interrupts_druids = { } end
  97. if (_interrupts_druids[sourceName] == nil) then _interrupts_druids[sourceName] = { } end
  98.  
  99. _interrupts_druids[sourceName]["S-Beam"] = GetTime() + 60;
  100.  
  101. -- END INTERRUPTS --
  102.  
  103. elseif (spellID == 64843 and eventType == "SPELL_AURA_APPLIED") then
  104. -- Divine Hymn --
  105. if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
  106. if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
  107.  
  108. _raidCDs_priests[sourceName]["D-Hymn"] = GetTime() + 180;
  109.  
  110. elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 106898) then
  111. -- Stampeding Roar --
  112. if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
  113. if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
  114.  
  115. local roar1 = _utilityCDs_druids[sourceName]["Roar"];
  116. local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
  117.  
  118. if (roar1 ~= nil) then
  119. _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
  120. _utilityCDs_druids[sourceName]["Roar+"] = nil;
  121. end
  122. if (roar2 ~= nil) then
  123. _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
  124. _utilityCDs_druids[sourceName]["Roar"] = nil;
  125. end
  126.  
  127. elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 77761) then
  128. -- Stampeding Roar: DEBUG --
  129. if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
  130. if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
  131.  
  132. local roar1 = _utilityCDs_druids[sourceName]["Roar"];
  133. local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
  134.  
  135. if (roar1 ~= nil) then
  136. _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
  137. _utilityCDs_druids[sourceName]["Roar+"] = nil;
  138. end
  139. if (roar2 ~= nil) then
  140. _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
  141. _utilityCDs_druids[sourceName]["Roar"] = nil;
  142. end
  143.  
  144. elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 77764) then
  145. -- Stampeding Roar: FERAL --
  146. if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
  147. if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
  148.  
  149. local roar1 = _utilityCDs_druids[sourceName]["Roar"];
  150. local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
  151.  
  152. if (roar1 ~= nil) then
  153. _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
  154. _utilityCDs_druids[sourceName]["Roar+"] = nil;
  155. end
  156. if (roar2 ~= nil) then
  157. _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
  158. _utilityCDs_druids[sourceName]["Roar"] = nil;
  159. end
  160.  
  161. elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 740) then
  162. -- Tranquility --
  163. if (_raidCDs_druids == nil) then _raidCDs_druids = { } end
  164. if (_raidCDs_druids[sourceName] == nil) then _raidCDs_druids[sourceName] = { } end
  165.  
  166. local tranq1 = _raidCDs_druids[sourceName]["Tranq+"];
  167. local tranq2 = _raidCDs_druids[sourceName]["Tranq"];
  168.  
  169. if (tranq1 ~= nil) then
  170. _raidCDs_druids[sourceName]["Tranq+"] = GetTime() + 120;
  171. _raidCDs_druids[sourceName]["Tranq"] = nil;
  172. end
  173. if (tranq2 ~= nil) then
  174. _raidCDs_druids[sourceName]["Tranq"] = GetTime() + 180;
  175. _raidCDs_druids[sourceName]["Tranq+"] = nil;
  176. end
  177.  
  178. elseif (spellID == 108281 and eventType == "SPELL_AURA_APPLIED") then
  179. -- Ancestral Guidance --
  180. if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
  181. if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
  182.  
  183. _raidCDs_shamans[sourceName]["AG"] = GetTime() + 120;
  184.  
  185. elseif(spellID == 97462 and eventType == "SPELL_CAST_SUCCESS") then
  186. -- Commanding Shout --
  187. if (_raidCDs_warriors == nil) then _raidCDs_warriors = { } end
  188. if (_raidCDs_warriors[sourceName] == nil) then _raidCDs_warriors[sourceName] = { } end
  189.  
  190. _raidCDs_warriors[sourceName]["C-Shout"] = GetTime() + 180;
  191.  
  192. elseif(spellID == 108280 and eventType == "SPELL_CAST_SUCCESS") then
  193. -- Healing Tide --
  194. if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
  195. if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
  196.  
  197. _raidCDs_shamans[sourceName]["H-Tide"] = GetTime() + 180;
  198.  
  199. elseif(spellID == 62618 and eventType == "SPELL_CAST_SUCCESS") then
  200. -- Power Word: Barrier --
  201. if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
  202. if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
  203.  
  204. _raidCDs_priests[sourceName]["Barrier"] = GetTime() + 180;
  205.  
  206. elseif(spellID == 98008 and eventType == "SPELL_CAST_SUCCESS") then
  207. -- Spirit Link Totem --
  208. if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
  209. if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
  210.  
  211. _raidCDs_shamans[sourceName]["SLT"] = GetTime() + 180;
  212.  
  213. elseif(spellID == 115310 and eventType == "SPELL_CAST_SUCCESS") then
  214. -- Revival --
  215. if (_raidCDs_monks == nil) then _raidCDs_monks = { } end
  216. if (_raidCDs_monks[sourceName] == nil) then _raidCDs_monks[sourceName] = { } end
  217.  
  218. _raidCDs_monks[sourceName]["Revival"] = GetTime() + 180;
  219.  
  220. elseif(spellID == 47788 and eventType == "SPELL_CAST_SUCCESS") then
  221. -- Guardian Spirit --
  222. if (_externCDs_priests == nil) then _externCDs_priests = { } end
  223. if (_externCDs_priests[sourceName] == nil) then _externCDs_priests[sourceName] = { } end
  224.  
  225. local GA1 = _externCDs_priests[sourceName]["G-Spirit"];
  226. local GA2 = _externCDs_priests[sourceName]["G-Spirit+"];
  227.  
  228. if (GA1 ~= nil) then
  229. _externCDs_priests[sourceName]["G-Spirit"] = GetTime() + 240;
  230. _externCDs_priests[sourceName]["G-Spirit+"] = nil;
  231. end
  232. if (GA2 ~= nil) then
  233. _externCDs_priests[sourceName]["G-Spirit+"] = GetTime() + 240;
  234. _externCDs_priests[sourceName]["G-Spirit"] = nil;
  235. end
  236.  
  237. elseif(spellID == 47788 and eventType == "SPELL_AURA_APPLIED") then
  238. -- Guardian Angel Applied (talent 4:2) --
  239.  
  240. local GA2 = _externCDs_priests[sourceName]["G-Spirit+"];
  241. if (GA2 ~= nil) then
  242. aura_env.GADuration = select(7, UnitBuff(destName, "Guardian Spirit"))
  243. end
  244.  
  245. elseif(spellID == 47788 and eventType == "SPELL_AURA_REMOVED") then
  246. -- Guardian Angel Removed (talent 4:2) --
  247.  
  248. local hasGA = _externCDs_priests[sourceName]["G-Spirit+"];
  249. if (hasGA ~= nil) then
  250. local timeLeft = aura_env.GADuration - GetTime()
  251. if timeLeft <= 0.1 then
  252. _externCDs_priests[sourceName]["G-Spirit+"] = GetTime() + 90;
  253. end
  254. end
  255.  
  256. elseif(spellID == 198304 and eventType == "SPELL_CAST_SUCCESS") then
  257. -- Intercept: Safeguard --
  258. if (_externCDs_warriors == nil) then _externCDs_warriors = { } end
  259. if (_externCDs_warriors[sourceName] == nil) then _externCDs_warriors[sourceName] = { } end
  260.  
  261. local safeguard = _externCDs_warriors[sourceName]["Safeguard"];
  262.  
  263. if (safeguard ~= nil) then
  264. _externCDs_warriors[sourceName]["Safeguard"] = GetTime() + 20;
  265. end
  266. if (safeguard == nil) then
  267. _externCDs_warriors[sourceName]["Safeguard"] = nil;
  268. end
  269.  
  270. elseif(spellID == 102342 and eventType == "SPELL_CAST_SUCCESS") then
  271. -- Ironbark --
  272. if (_externCDs_druids == nil) then _externCDs_druids = { } end
  273. if (_externCDs_druids[sourceName] == nil) then _externCDs_druids[sourceName] = { } end
  274.  
  275. local ibark1 = _externCDs_druids[sourceName]["I-Bark"];
  276. local ibark2 = _externCDs_druids[sourceName]["I-Bark+"];
  277.  
  278. if (ibark1 ~= nil) then
  279. _externCDs_druids[sourceName]["I-Bark"] = GetTime() + 90;
  280. _externCDs_druids[sourceName]["I-Bark+"] = nil;
  281. end
  282. if (ibark2 ~= nil) then
  283. _externCDs_druids[sourceName]["I-Bark+"] = GetTime() + 60;
  284. _externCDs_druids[sourceName]["I-Bark"] = nil;
  285. end
  286.  
  287. elseif(spellID == 33206 and eventType == "SPELL_CAST_SUCCESS") then
  288. -- Pain Suppresion --
  289. if (_externCDs_priests == nil) then _externCDs_priests = { } end
  290. if (_externCDs_priests[sourceName] == nil) then _externCDs_priests[sourceName] = { } end
  291.  
  292. _externCDs_priests[sourceName]["P-Sup"] = GetTime() + 240;
  293.  
  294. elseif(spellID == 116849 and eventType == "SPELL_CAST_SUCCESS") then
  295. -- Life Cocoon --
  296. if (_externCDs_monks == nil) then _externCDs_monks = { } end
  297. if (_externCDs_monks[sourceName] == nil) then _externCDs_monks[sourceName] = { } end
  298.  
  299. _externCDs_monks[sourceName]["L-Cocoon"] = GetTime() + 180;
  300.  
  301. elseif(spellID == 1022 and eventType == "SPELL_CAST_SUCCESS") then
  302. -- Blessing of Protection --
  303. if (_utilityCDs_paladins == nil) then _utilityCDs_paladins = { } end
  304. if (_utilityCDs_paladins[sourceName] == nil) then _utilityCDs_paladins[sourceName] = { } end
  305.  
  306. _utilityCDs_paladins[sourceName]["BoP"] = GetTime() + 300;
  307.  
  308. elseif(spellID == 204018 and eventType == "SPELL_CAST_SUCCESS") then
  309. -- Blessing of Spellwarding --
  310. if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
  311. if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
  312.  
  313. _externCDs_paladins[sourceName]["Spellward"] = GetTime() + 180;
  314.  
  315. elseif(spellID == 31821 and eventType == "SPELL_CAST_SUCCESS") then
  316. -- Aura Mastery --
  317. if (_raidCDs_paladins == nil) then _raidCDs_paladins = { } end
  318. if (_raidCDs_paladins[sourceName] == nil) then _raidCDs_paladins[sourceName] = { } end
  319.  
  320. _raidCDs_paladins[sourceName]["Aura-M"] = GetTime() + 180;
  321.  
  322. elseif(spellID == 204150 and eventType == "SPELL_AURA_APPLIED") then
  323. -- Aegis of Light --
  324. if (_raidCDs_paladins == nil) then _raidCDs_paladins = { } end
  325. if (_raidCDs_paladins[sourceName] == nil) then _raidCDs_paladins[sourceName] = { } end
  326.  
  327. _raidCDs_paladins[sourceName]["Aegis"] = GetTime() + 300;
  328.  
  329. elseif(spellID == 15286 and eventType == "SPELL_CAST_SUCCESS") then
  330. -- Vampiric Embrace --
  331. if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
  332. if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
  333.  
  334. _raidCDs_priests[sourceName]["VE"] = GetTime() + 180;
  335.  
  336. elseif(spellID == 196718 and eventType == "SPELL_CAST_SUCCESS") then
  337. -- Darkness --
  338. if (_raidCDs_dhs == nil) then _raidCDs_dhs = { } end
  339. if (_raidCDs_dhs[sourceName] == nil) then _raidCDs_dhs[sourceName] = { } end
  340.  
  341. _raidCDs_dhs[sourceName]["Darkness"] = GetTime() + 180;
  342.  
  343. elseif(spellID == 207810 and eventType == "SPELL_CAST_SUCCESS") then
  344. -- Nether Bond --
  345. if (_externCDs_dhs == nil) then _externCDs_dhs = { } end
  346. if (_externCDs_dhs[sourceName] == nil) then _externCDs_dhs[sourceName] = { } end
  347.  
  348. _externCDs_dhs[sourceName]["N-Bond"] = GetTime() + 120;
  349.  
  350. elseif(spellID == 207399 and eventType == "SPELL_CAST_SUCCESS") then
  351. -- Ancestral Protection Totem --
  352. if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
  353. if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
  354.  
  355. _raidCDs_shamans[sourceName]["A-Prot"] = GetTime() + 300;
  356.  
  357. elseif(spellID == 6940 and eventType == "SPELL_CAST_SUCCESS") then
  358. -- Blessing of Sacrifice --
  359. if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
  360. if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
  361.  
  362. local sac1 = _externCDs_paladins[sourceName]["Sac+"];
  363. local sac2 = _externCDs_paladins[sourceName]["Sac"];
  364.  
  365. if (sac1 ~= nil) then
  366. _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
  367. _externCDs_paladins[sourceName]["Sac"] = nil;
  368. end
  369. if (sac2 ~= nil) then
  370. _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
  371. _externCDs_paladins[sourceName]["Sac+"] = nil;
  372. end
  373.  
  374. elseif(spellID == 199448 and eventType == "SPELL_CAST_SUCCESS") then
  375. -- Blessing of Sacrifice: DEBUG --
  376. if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
  377. if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
  378.  
  379. local sac1 = _externCDs_paladins[sourceName]["Sac+"];
  380. local sac2 = _externCDs_paladins[sourceName]["Sac"];
  381.  
  382. if (sac1 ~= nil) then
  383. _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
  384. _externCDs_paladins[sourceName]["Sac"] = nil;
  385. end
  386. if (sac2 ~= nil) then
  387. _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
  388. _externCDs_paladins[sourceName]["Sac+"] = nil;
  389. end
  390.  
  391. elseif(spellID == 187190 and eventType == "SPELL_CAST_SUCCESS") then
  392. -- Blessing of Sacrifice: DEBUG --
  393. if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
  394. if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
  395.  
  396. local sac1 = _externCDs_paladins[sourceName]["Sac+"];
  397. local sac2 = _externCDs_paladins[sourceName]["Sac"];
  398.  
  399. if (sac1 ~= nil) then
  400. _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
  401. _externCDs_paladins[sourceName]["Sac"] = nil;
  402. end
  403. if (sac2 ~= nil) then
  404. _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
  405. _externCDs_paladins[sourceName]["Sac+"] = nil;
  406. end
  407.  
  408. elseif(spellID == 64901 and eventType == "SPELL_CAST_SUCCESS") then
  409. -- Symbol of Hope --
  410. if (_utilityCDs_priests == nil) then _utilityCDs_priests = { } end
  411. if (_utilityCDs_priests[sourceName] == nil) then _utilityCDs_priests[sourceName] = { } end
  412.  
  413. _utilityCDs_priests[sourceName]["Hope"] = GetTime() + 360;
  414.  
  415. elseif(spellID == 73325 and eventType == "SPELL_CAST_SUCCESS") then
  416. -- Leap of Faith --
  417. if (_utilityCDs_priests == nil) then _utilityCDs_priests = { } end
  418. if (_utilityCDs_priests[sourceName] == nil) then _utilityCDs_priests[sourceName] = { } end
  419.  
  420. _utilityCDs_priests[sourceName]["Grip"] = GetTime() + 90;
  421.  
  422. elseif(spellID == 192077 and eventType == "SPELL_CAST_SUCCESS") then
  423. -- Wind Rush Totem --
  424. if (_utilityCDs_shamans == nil) then _utilityCDs_shamans = { } end
  425. if (_utilityCDs_shamans[sourceName] == nil) then _utilityCDs_shamans[sourceName] = { } end
  426.  
  427. _utilityCDs_shamans[sourceName]["Wind Rush"] = GetTime() + 120;
  428.  
  429. elseif(spellID == 29166 and eventType == "SPELL_CAST_SUCCESS") then
  430. -- Innervate --
  431. if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
  432. if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
  433.  
  434. _utilityCDs_druids[sourceName]["Innervate"] = GetTime() + 180;
  435.  
  436. elseif(eventType == "SPELL_CAST_SUCCESS" and spellID == 108199) then
  437. -- Gorefiend's Grasp --
  438. if (_utilityCDs_dks == nil) then _utilityCDs_dks = { } end
  439. if (_utilityCDs_dks[sourceName] == nil) then _utilityCDs_dks[sourceName] = { } end
  440.  
  441. local grasp1 = _utilityCDs_dks[sourceName]["Grasp"];
  442. local grasp2 = _utilityCDs_dks[sourceName]["Grasp+"];
  443.  
  444. if (grasp1 ~= nil) then
  445. _utilityCDs_dks[sourceName]["Grasp"] = GetTime() + 180;
  446. _utilityCDs_dks[sourceName]["Grasp+"] = nil;
  447. end
  448. if (grasp2 ~= nil) then
  449. _utilityCDs_dks[sourceName]["Grasp+"] = GetTime() + 120;
  450. _utilityCDs_dks[sourceName]["Grasp"] = nil;
  451. end
  452.  
  453. elseif(eventType == "SPELL_CAST_SUCCESS" and spellID == 202138) then
  454. -- Sigil of Chains --
  455. if (_utilityCDs_dhs == nil) then _utilityCDs_dhs = { } end
  456. if (_utilityCDs_dhs[sourceName] == nil) then _utilityCDs_dhs[sourceName] = { } end
  457.  
  458. _utilityCDs_dhs[sourceName]["Chains"] = GetTime() + 60;
  459. end
  460.  
  461.  
  462.  
  463. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement