@@ -48,10 +48,9 @@ function mod:SPELL_AURA_APPLIED_DOSE(args)
|
||||
if args:IsPlayer() then
|
||||
SpecWarnVicStacks:Show(args.amount)
|
||||
else
|
||||
warnViciousStacks:Show(args.spellName, args.destName, args.amount or 1)
|
||||
warnViciousStacks:Show(args.spellName, args.destName, args.amount or 1)
|
||||
end
|
||||
end
|
||||
if args:IsSpellID(2122904) then
|
||||
elseif args:IsSpellID(2122904) then
|
||||
if args.amount >=1 then
|
||||
specWarnAngry:Show(args.spellName, args.destName, args.amount or 1)
|
||||
end
|
||||
@@ -63,16 +62,13 @@ function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsPlayer() then
|
||||
SpecWarnVicStacks:Show(args.amount or 1)
|
||||
else
|
||||
warnViciousStacks:Show(args.spellName, args.destName, args.amount or 1)
|
||||
warnViciousStacks:Show(args.spellName, args.destName, args.amount or 1)
|
||||
end
|
||||
end
|
||||
if args:IsSpellID(2122904) then
|
||||
elseif args:IsSpellID(2122904) then
|
||||
specWarnAngry:Show(args.spellName, args.destName, args.amount or 1)
|
||||
end
|
||||
if args:IsSpellID(2122903) then
|
||||
elseif args:IsSpellID(2122903) then
|
||||
warnHungry:Show()
|
||||
end
|
||||
if args:IsSpellID(2122923) and (args.destName == "Gluth") then
|
||||
elseif args:IsSpellID(2122923) and (args.destName == "Gluth") then
|
||||
timerFeedFrenzy:Start()
|
||||
end
|
||||
end
|
||||
@@ -80,7 +76,7 @@ end
|
||||
function mod:UNIT_DIED(args)
|
||||
local cid = self:GetCIDFromGUID(args.destGUID)
|
||||
if cid == 15932 or cid == 26628 then
|
||||
timerDecimate:Stop()
|
||||
timerDecimate:Stop()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsPlayer() then
|
||||
specWarnInjection:Show()
|
||||
else
|
||||
warnInjection:Show(args.destName)
|
||||
warnInjection:Show(args.destName)
|
||||
end
|
||||
timerInjection:Start(args.destName)
|
||||
timerNextInjection:Start()
|
||||
@@ -123,6 +123,7 @@ function mod:StitchedGiant()
|
||||
timerStitchedGiant:Start()
|
||||
self:ScheduleMethod(60,"StitchedGiant")
|
||||
end
|
||||
|
||||
--if args:IsSpellID(28240) then
|
||||
-- timer = 15
|
||||
-- timerCloud:Start(timer)
|
||||
@@ -132,9 +133,9 @@ end
|
||||
function mod:UNIT_DIED(args)
|
||||
local cid = self:GetCIDFromGUID(args.destGUID)
|
||||
if cid == 15931 or cid == 26627 then
|
||||
timerInjection:Stop()
|
||||
timerSpray:Stop()
|
||||
timerNextInjection:Stop()
|
||||
timerInjection:Stop()
|
||||
timerSpray:Stop()
|
||||
timerNextInjection:Stop()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -49,23 +49,21 @@ function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsPlayer() then
|
||||
specWarnGastric:Show();
|
||||
else
|
||||
warnGastric:Show(args.destName)
|
||||
warnGastric:Show(args.destName)
|
||||
end
|
||||
timerGastricSelf:Start(args.destName)
|
||||
self:SetIcon(args.destName, 8, 15)
|
||||
timerGastric:Start()
|
||||
end
|
||||
if args:IsSpellID(2122516) then
|
||||
elseif args:IsSpellID(2122516) then
|
||||
if args:IsPlayer() then
|
||||
specWarnNotFavToy:Show(args.destName)
|
||||
timerNotFavToy:Start(args.destName)
|
||||
specWarnNotFavToy:Show(args.destName)
|
||||
timerNotFavToy:Start(args.destName)
|
||||
end
|
||||
MT = args.destName
|
||||
end
|
||||
if args:IsSpellID(2122515) then
|
||||
elseif args:IsSpellID(2122515) then
|
||||
if args:IsPlayer() then
|
||||
specWarnFavToy:Show(args.destName)
|
||||
timerFavToy:Start(args.destName)
|
||||
specWarnFavToy:Show(args.destName)
|
||||
timerFavToy:Start(args.destName)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -73,10 +71,9 @@ end
|
||||
function mod:SPELL_DAMAGE(args)
|
||||
if args:IsSpellID(28308, 59192) and self.Options.WarningHateful and DBM:GetRaidRank() >= 1 then
|
||||
announceStrike(args.destName, args.amount or 0)
|
||||
end
|
||||
if args:IsSpellID(2122505) and (args.destName == MT) then
|
||||
timerNotFavToy:Stop()
|
||||
timerNotFavToy:Start(MT)
|
||||
elseif args:IsSpellID(2122505) and (args.destName == MT) then
|
||||
timerNotFavToy:Stop()
|
||||
timerNotFavToy:Start(MT)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -102,17 +102,16 @@ function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsPlayer() then
|
||||
SendChatMessage("Magnetic Reversal on "..UnitName("PLAYER").."!", "Say")
|
||||
end
|
||||
warnMagnetic:Show(args.destName)
|
||||
timerMagnetic:Start()
|
||||
mod:SetIcon(args.destName, i, 15)
|
||||
i = i-1
|
||||
end
|
||||
if args:IsSpellID(2124222) then
|
||||
warnMagnetic:Show(args.destName)
|
||||
timerMagnetic:Start()
|
||||
mod:SetIcon(args.destName, i, 15)
|
||||
i = i-1
|
||||
elseif args:IsSpellID(2124222) then
|
||||
local tanktarget = args.destName
|
||||
if args:IsPlayer() then
|
||||
specWarnTankOvercharged:Show()
|
||||
else
|
||||
warnTankOvercharged:Show(tanktarget)
|
||||
warnTankOvercharged:Show(tanktarget)
|
||||
end
|
||||
mod:SetIcon(tanktarget, 8, 15)
|
||||
end
|
||||
@@ -139,17 +138,16 @@ function mod:UNIT_AURA(unit)
|
||||
if currentCharge == 1 or currentCharge == 0 then
|
||||
specWarnNegative:Show()
|
||||
end
|
||||
currentCharge = 2
|
||||
negativePolarity:Show()
|
||||
positivePolarity:Hide()
|
||||
end
|
||||
if UnitDebuff("Player","Polarity: Positive") then
|
||||
currentCharge = 2
|
||||
negativePolarity:Show()
|
||||
positivePolarity:Hide()
|
||||
elseif UnitDebuff("Player","Polarity: Positive") then
|
||||
if currentCharge == 2 or currentCharge == 0 then
|
||||
specWarnPositive:Show()
|
||||
end
|
||||
currentCharge = 1
|
||||
negativePolarity:Hide()
|
||||
positivePolarity:Show()
|
||||
currentCharge = 1
|
||||
negativePolarity:Hide()
|
||||
positivePolarity:Show()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user