Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function (_, _, eventType, _, _, sourceName, _, _, _, destName, _, _, spellID, spellName)
- if (not UnitInParty(sourceName)) then return false end
- aura_env.GADuration = aura_env.GADuration or 0 --initializes GADuration
- -- INTERRUPTS --
- if(spellID == 1766 and eventType == "SPELL_CAST_SUCCESS") then
- -- Kick --
- if (_interrupts_rogues == nil) then _interrupts_rogues = { } end
- if (_interrupts_rogues[sourceName] == nil) then _interrupts_rogues[sourceName] = { } end
- _interrupts_rogues[sourceName]["Kick"] = GetTime() + 15;
- elseif(spellID == 6552 and eventType == "SPELL_CAST_SUCCESS") then
- -- Pummel --
- if (_interrupts_warriors == nil) then _interrupts_warriors = { } end
- if (_interrupts_warriors[sourceName] == nil) then _interrupts_warriors[sourceName] = { } end
- _interrupts_warriors[sourceName]["Pummel"] = GetTime() + 15;
- elseif (spellID == 106839 and eventType == "SPELL_CAST_SUCCESS") then
- -- Skull Bash --
- if (_interrupts_druids == nil) then _interrupts_druids = { } end
- if (_interrupts_druids[sourceName] == nil) then _interrupts_druids[sourceName] = { } end
- _interrupts_druids[sourceName]["S-Bash"] = GetTime() + 15;
- elseif(spellID == 47528 and eventType == "SPELL_CAST_SUCCESS") then
- -- Mind Freeze --
- if (_interrupts_dks == nil) then _interrupts_dks = { } end
- if (_interrupts_dks[sourceName] == nil) then _interrupts_dks[sourceName] = { } end
- _interrupts_dks[sourceName]["M-Freeze"] = GetTime() + 15;
- elseif(spellID == 183752 and eventType == "SPELL_CAST_SUCCESS") then
- -- Consume Magic --
- if (_interrupts_dhs == nil) then _interrupts_dhs = { } end
- if (_interrupts_dhs[sourceName] == nil) then _interrupts_dhs[sourceName] = { } end
- _interrupts_dhs[sourceName]["Consume"] = GetTime() + 15;
- elseif(spellID == 96231 and eventType == "SPELL_CAST_SUCCESS") then
- -- Rebuke --
- if (_interrupts_paladins == nil) then _interrupts_paladins = { } end
- if (_interrupts_paladins[sourceName] == nil) then _interrupts_paladins[sourceName] = { } end
- _interrupts_paladins[sourceName]["Rebuke"] = GetTime() + 15;
- elseif (spellID == 57994 and eventType == "SPELL_CAST_SUCCESS") then
- -- Wind Shear --
- if (_interrupts_shamans == nil) then _interrupts_shamans = { } end
- if (_interrupts_shamans[sourceName] == nil) then _interrupts_shamans[sourceName] = { } end
- _interrupts_shamans[sourceName]["W-Shear"] = GetTime() + 12;
- elseif(spellID == 116705 and eventType == "SPELL_CAST_SUCCESS") then
- -- Spear Hand Strike --
- if (_interrupts_monks == nil) then _interrupts_monks = { } end
- if (_interrupts_monks[sourceName] == nil) then _interrupts_monks[sourceName] = { } end
- _interrupts_monks[sourceName]["S-Strike"] = GetTime() + 15;
- elseif(spellID == 187707 and eventType == "SPELL_CAST_SUCCESS") then
- -- Muzzle --
- if (_interrupts_hunters == nil) then _interrupts_hunters = { } end
- if (_interrupts_hunters[sourceName] == nil) then _interrupts_hunters[sourceName] = { } end
- _interrupts_hunters[sourceName]["Muzzle"] = GetTime() + 15;
- elseif(spellID == 147362 and eventType == "SPELL_CAST_SUCCESS") then
- -- Counter Shot --
- if (_interrupts_hunters == nil) then _interrupts_hunters = { } end
- if (_interrupts_hunters[sourceName] == nil) then _interrupts_hunters[sourceName] = { } end
- _interrupts_hunters[sourceName]["C-Shot"] = GetTime() + 24;
- elseif (spellID == 2139 and eventType == "SPELL_CAST_SUCCESS") then
- -- Counterspell --
- if (_interrupts_mages == nil) then _interrupts_mages = { } end
- if (_interrupts_mages[sourceName] == nil) then _interrupts_mages[sourceName] = { } end
- _interrupts_mages[sourceName]["C-Spell"] = GetTime() + 24;
- elseif (spellID == 15487 and eventType == "SPELL_CAST_SUCCESS") then
- -- Priest: Silence --
- if (_interrupts_priests == nil) then _interrupts_priests = { } end
- if (_interrupts_priests[sourceName] == nil) then _interrupts_priests[sourceName] = { } end
- _interrupts_priests[sourceName]["Silence"] = GetTime() + 45;
- elseif (spellID == 78675 and eventType == "SPELL_CAST_SUCCESS") then
- -- Solar Beam --
- if (_interrupts_druids == nil) then _interrupts_druids = { } end
- if (_interrupts_druids[sourceName] == nil) then _interrupts_druids[sourceName] = { } end
- _interrupts_druids[sourceName]["S-Beam"] = GetTime() + 60;
- -- END INTERRUPTS --
- elseif (spellID == 64843 and eventType == "SPELL_AURA_APPLIED") then
- -- Divine Hymn --
- if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
- if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
- _raidCDs_priests[sourceName]["D-Hymn"] = GetTime() + 180;
- elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 106898) then
- -- Stampeding Roar --
- if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
- if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
- local roar1 = _utilityCDs_druids[sourceName]["Roar"];
- local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
- if (roar1 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
- _utilityCDs_druids[sourceName]["Roar+"] = nil;
- end
- if (roar2 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
- _utilityCDs_druids[sourceName]["Roar"] = nil;
- end
- elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 77761) then
- -- Stampeding Roar: DEBUG --
- if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
- if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
- local roar1 = _utilityCDs_druids[sourceName]["Roar"];
- local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
- if (roar1 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
- _utilityCDs_druids[sourceName]["Roar+"] = nil;
- end
- if (roar2 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
- _utilityCDs_druids[sourceName]["Roar"] = nil;
- end
- elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 77764) then
- -- Stampeding Roar: FERAL --
- if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
- if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
- local roar1 = _utilityCDs_druids[sourceName]["Roar"];
- local roar2 = _utilityCDs_druids[sourceName]["Roar+"];
- if (roar1 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar"] = GetTime() + 120;
- _utilityCDs_druids[sourceName]["Roar+"] = nil;
- end
- if (roar2 ~= nil) then
- _utilityCDs_druids[sourceName]["Roar+"] = GetTime() + 60;
- _utilityCDs_druids[sourceName]["Roar"] = nil;
- end
- elseif (eventType == "SPELL_CAST_SUCCESS" and spellID == 740) then
- -- Tranquility --
- if (_raidCDs_druids == nil) then _raidCDs_druids = { } end
- if (_raidCDs_druids[sourceName] == nil) then _raidCDs_druids[sourceName] = { } end
- local tranq1 = _raidCDs_druids[sourceName]["Tranq+"];
- local tranq2 = _raidCDs_druids[sourceName]["Tranq"];
- if (tranq1 ~= nil) then
- _raidCDs_druids[sourceName]["Tranq+"] = GetTime() + 120;
- _raidCDs_druids[sourceName]["Tranq"] = nil;
- end
- if (tranq2 ~= nil) then
- _raidCDs_druids[sourceName]["Tranq"] = GetTime() + 180;
- _raidCDs_druids[sourceName]["Tranq+"] = nil;
- end
- elseif (spellID == 108281 and eventType == "SPELL_AURA_APPLIED") then
- -- Ancestral Guidance --
- if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
- if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
- _raidCDs_shamans[sourceName]["AG"] = GetTime() + 120;
- elseif(spellID == 97462 and eventType == "SPELL_CAST_SUCCESS") then
- -- Commanding Shout --
- if (_raidCDs_warriors == nil) then _raidCDs_warriors = { } end
- if (_raidCDs_warriors[sourceName] == nil) then _raidCDs_warriors[sourceName] = { } end
- _raidCDs_warriors[sourceName]["C-Shout"] = GetTime() + 180;
- elseif(spellID == 108280 and eventType == "SPELL_CAST_SUCCESS") then
- -- Healing Tide --
- if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
- if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
- _raidCDs_shamans[sourceName]["H-Tide"] = GetTime() + 180;
- elseif(spellID == 62618 and eventType == "SPELL_CAST_SUCCESS") then
- -- Power Word: Barrier --
- if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
- if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
- _raidCDs_priests[sourceName]["Barrier"] = GetTime() + 180;
- elseif(spellID == 98008 and eventType == "SPELL_CAST_SUCCESS") then
- -- Spirit Link Totem --
- if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
- if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
- _raidCDs_shamans[sourceName]["SLT"] = GetTime() + 180;
- elseif(spellID == 115310 and eventType == "SPELL_CAST_SUCCESS") then
- -- Revival --
- if (_raidCDs_monks == nil) then _raidCDs_monks = { } end
- if (_raidCDs_monks[sourceName] == nil) then _raidCDs_monks[sourceName] = { } end
- _raidCDs_monks[sourceName]["Revival"] = GetTime() + 180;
- elseif(spellID == 47788 and eventType == "SPELL_CAST_SUCCESS") then
- -- Guardian Spirit --
- if (_externCDs_priests == nil) then _externCDs_priests = { } end
- if (_externCDs_priests[sourceName] == nil) then _externCDs_priests[sourceName] = { } end
- local GA1 = _externCDs_priests[sourceName]["G-Spirit"];
- local GA2 = _externCDs_priests[sourceName]["G-Spirit+"];
- if (GA1 ~= nil) then
- _externCDs_priests[sourceName]["G-Spirit"] = GetTime() + 240;
- _externCDs_priests[sourceName]["G-Spirit+"] = nil;
- end
- if (GA2 ~= nil) then
- _externCDs_priests[sourceName]["G-Spirit+"] = GetTime() + 240;
- _externCDs_priests[sourceName]["G-Spirit"] = nil;
- end
- elseif(spellID == 47788 and eventType == "SPELL_AURA_APPLIED") then
- -- Guardian Angel Applied (talent 4:2) --
- local GA2 = _externCDs_priests[sourceName]["G-Spirit+"];
- if (GA2 ~= nil) then
- aura_env.GADuration = select(7, UnitBuff(destName, "Guardian Spirit"))
- end
- elseif(spellID == 47788 and eventType == "SPELL_AURA_REMOVED") then
- -- Guardian Angel Removed (talent 4:2) --
- local hasGA = _externCDs_priests[sourceName]["G-Spirit+"];
- if (hasGA ~= nil) then
- local timeLeft = aura_env.GADuration - GetTime()
- if timeLeft <= 0.1 then
- _externCDs_priests[sourceName]["G-Spirit+"] = GetTime() + 90;
- end
- end
- elseif(spellID == 198304 and eventType == "SPELL_CAST_SUCCESS") then
- -- Intercept: Safeguard --
- if (_externCDs_warriors == nil) then _externCDs_warriors = { } end
- if (_externCDs_warriors[sourceName] == nil) then _externCDs_warriors[sourceName] = { } end
- local safeguard = _externCDs_warriors[sourceName]["Safeguard"];
- if (safeguard ~= nil) then
- _externCDs_warriors[sourceName]["Safeguard"] = GetTime() + 20;
- end
- if (safeguard == nil) then
- _externCDs_warriors[sourceName]["Safeguard"] = nil;
- end
- elseif(spellID == 102342 and eventType == "SPELL_CAST_SUCCESS") then
- -- Ironbark --
- if (_externCDs_druids == nil) then _externCDs_druids = { } end
- if (_externCDs_druids[sourceName] == nil) then _externCDs_druids[sourceName] = { } end
- local ibark1 = _externCDs_druids[sourceName]["I-Bark"];
- local ibark2 = _externCDs_druids[sourceName]["I-Bark+"];
- if (ibark1 ~= nil) then
- _externCDs_druids[sourceName]["I-Bark"] = GetTime() + 90;
- _externCDs_druids[sourceName]["I-Bark+"] = nil;
- end
- if (ibark2 ~= nil) then
- _externCDs_druids[sourceName]["I-Bark+"] = GetTime() + 60;
- _externCDs_druids[sourceName]["I-Bark"] = nil;
- end
- elseif(spellID == 33206 and eventType == "SPELL_CAST_SUCCESS") then
- -- Pain Suppresion --
- if (_externCDs_priests == nil) then _externCDs_priests = { } end
- if (_externCDs_priests[sourceName] == nil) then _externCDs_priests[sourceName] = { } end
- _externCDs_priests[sourceName]["P-Sup"] = GetTime() + 240;
- elseif(spellID == 116849 and eventType == "SPELL_CAST_SUCCESS") then
- -- Life Cocoon --
- if (_externCDs_monks == nil) then _externCDs_monks = { } end
- if (_externCDs_monks[sourceName] == nil) then _externCDs_monks[sourceName] = { } end
- _externCDs_monks[sourceName]["L-Cocoon"] = GetTime() + 180;
- elseif(spellID == 1022 and eventType == "SPELL_CAST_SUCCESS") then
- -- Blessing of Protection --
- if (_utilityCDs_paladins == nil) then _utilityCDs_paladins = { } end
- if (_utilityCDs_paladins[sourceName] == nil) then _utilityCDs_paladins[sourceName] = { } end
- _utilityCDs_paladins[sourceName]["BoP"] = GetTime() + 300;
- elseif(spellID == 204018 and eventType == "SPELL_CAST_SUCCESS") then
- -- Blessing of Spellwarding --
- if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
- if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
- _externCDs_paladins[sourceName]["Spellward"] = GetTime() + 180;
- elseif(spellID == 31821 and eventType == "SPELL_CAST_SUCCESS") then
- -- Aura Mastery --
- if (_raidCDs_paladins == nil) then _raidCDs_paladins = { } end
- if (_raidCDs_paladins[sourceName] == nil) then _raidCDs_paladins[sourceName] = { } end
- _raidCDs_paladins[sourceName]["Aura-M"] = GetTime() + 180;
- elseif(spellID == 204150 and eventType == "SPELL_AURA_APPLIED") then
- -- Aegis of Light --
- if (_raidCDs_paladins == nil) then _raidCDs_paladins = { } end
- if (_raidCDs_paladins[sourceName] == nil) then _raidCDs_paladins[sourceName] = { } end
- _raidCDs_paladins[sourceName]["Aegis"] = GetTime() + 300;
- elseif(spellID == 15286 and eventType == "SPELL_CAST_SUCCESS") then
- -- Vampiric Embrace --
- if (_raidCDs_priests == nil) then _raidCDs_priests = { } end
- if (_raidCDs_priests[sourceName] == nil) then _raidCDs_priests[sourceName] = { } end
- _raidCDs_priests[sourceName]["VE"] = GetTime() + 180;
- elseif(spellID == 196718 and eventType == "SPELL_CAST_SUCCESS") then
- -- Darkness --
- if (_raidCDs_dhs == nil) then _raidCDs_dhs = { } end
- if (_raidCDs_dhs[sourceName] == nil) then _raidCDs_dhs[sourceName] = { } end
- _raidCDs_dhs[sourceName]["Darkness"] = GetTime() + 180;
- elseif(spellID == 207810 and eventType == "SPELL_CAST_SUCCESS") then
- -- Nether Bond --
- if (_externCDs_dhs == nil) then _externCDs_dhs = { } end
- if (_externCDs_dhs[sourceName] == nil) then _externCDs_dhs[sourceName] = { } end
- _externCDs_dhs[sourceName]["N-Bond"] = GetTime() + 120;
- elseif(spellID == 207399 and eventType == "SPELL_CAST_SUCCESS") then
- -- Ancestral Protection Totem --
- if (_raidCDs_shamans == nil) then _raidCDs_shamans = { } end
- if (_raidCDs_shamans[sourceName] == nil) then _raidCDs_shamans[sourceName] = { } end
- _raidCDs_shamans[sourceName]["A-Prot"] = GetTime() + 300;
- elseif(spellID == 6940 and eventType == "SPELL_CAST_SUCCESS") then
- -- Blessing of Sacrifice --
- if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
- if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
- local sac1 = _externCDs_paladins[sourceName]["Sac+"];
- local sac2 = _externCDs_paladins[sourceName]["Sac"];
- if (sac1 ~= nil) then
- _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
- _externCDs_paladins[sourceName]["Sac"] = nil;
- end
- if (sac2 ~= nil) then
- _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
- _externCDs_paladins[sourceName]["Sac+"] = nil;
- end
- elseif(spellID == 199448 and eventType == "SPELL_CAST_SUCCESS") then
- -- Blessing of Sacrifice: DEBUG --
- if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
- if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
- local sac1 = _externCDs_paladins[sourceName]["Sac+"];
- local sac2 = _externCDs_paladins[sourceName]["Sac"];
- if (sac1 ~= nil) then
- _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
- _externCDs_paladins[sourceName]["Sac"] = nil;
- end
- if (sac2 ~= nil) then
- _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
- _externCDs_paladins[sourceName]["Sac+"] = nil;
- end
- elseif(spellID == 187190 and eventType == "SPELL_CAST_SUCCESS") then
- -- Blessing of Sacrifice: DEBUG --
- if (_externCDs_paladins == nil) then _externCDs_paladins = { } end
- if (_externCDs_paladins[sourceName] == nil) then _externCDs_paladins[sourceName] = { } end
- local sac1 = _externCDs_paladins[sourceName]["Sac+"];
- local sac2 = _externCDs_paladins[sourceName]["Sac"];
- if (sac1 ~= nil) then
- _externCDs_paladins[sourceName]["Sac+"] = GetTime() + 90;
- _externCDs_paladins[sourceName]["Sac"] = nil;
- end
- if (sac2 ~= nil) then
- _externCDs_paladins[sourceName]["Sac"] = GetTime() + 150;
- _externCDs_paladins[sourceName]["Sac+"] = nil;
- end
- elseif(spellID == 64901 and eventType == "SPELL_CAST_SUCCESS") then
- -- Symbol of Hope --
- if (_utilityCDs_priests == nil) then _utilityCDs_priests = { } end
- if (_utilityCDs_priests[sourceName] == nil) then _utilityCDs_priests[sourceName] = { } end
- _utilityCDs_priests[sourceName]["Hope"] = GetTime() + 360;
- elseif(spellID == 73325 and eventType == "SPELL_CAST_SUCCESS") then
- -- Leap of Faith --
- if (_utilityCDs_priests == nil) then _utilityCDs_priests = { } end
- if (_utilityCDs_priests[sourceName] == nil) then _utilityCDs_priests[sourceName] = { } end
- _utilityCDs_priests[sourceName]["Grip"] = GetTime() + 90;
- elseif(spellID == 192077 and eventType == "SPELL_CAST_SUCCESS") then
- -- Wind Rush Totem --
- if (_utilityCDs_shamans == nil) then _utilityCDs_shamans = { } end
- if (_utilityCDs_shamans[sourceName] == nil) then _utilityCDs_shamans[sourceName] = { } end
- _utilityCDs_shamans[sourceName]["Wind Rush"] = GetTime() + 120;
- elseif(spellID == 29166 and eventType == "SPELL_CAST_SUCCESS") then
- -- Innervate --
- if (_utilityCDs_druids == nil) then _utilityCDs_druids = { } end
- if (_utilityCDs_druids[sourceName] == nil) then _utilityCDs_druids[sourceName] = { } end
- _utilityCDs_druids[sourceName]["Innervate"] = GetTime() + 180;
- elseif(eventType == "SPELL_CAST_SUCCESS" and spellID == 108199) then
- -- Gorefiend's Grasp --
- if (_utilityCDs_dks == nil) then _utilityCDs_dks = { } end
- if (_utilityCDs_dks[sourceName] == nil) then _utilityCDs_dks[sourceName] = { } end
- local grasp1 = _utilityCDs_dks[sourceName]["Grasp"];
- local grasp2 = _utilityCDs_dks[sourceName]["Grasp+"];
- if (grasp1 ~= nil) then
- _utilityCDs_dks[sourceName]["Grasp"] = GetTime() + 180;
- _utilityCDs_dks[sourceName]["Grasp+"] = nil;
- end
- if (grasp2 ~= nil) then
- _utilityCDs_dks[sourceName]["Grasp+"] = GetTime() + 120;
- _utilityCDs_dks[sourceName]["Grasp"] = nil;
- end
- elseif(eventType == "SPELL_CAST_SUCCESS" and spellID == 202138) then
- -- Sigil of Chains --
- if (_utilityCDs_dhs == nil) then _utilityCDs_dhs = { } end
- if (_utilityCDs_dhs[sourceName] == nil) then _utilityCDs_dhs[sourceName] = { } end
- _utilityCDs_dhs[sourceName]["Chains"] = GetTime() + 60;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement