This commit is contained in:
Andrew6810
2022-10-21 06:50:13 -07:00
parent 8571e98fb1
commit 39c0ed874e
466 changed files with 52263 additions and 2 deletions
+84
View File
@@ -0,0 +1,84 @@
local mod = DBM:NewMod("Heigan", "DBM-Naxx", 3)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 2248 $"):sub(12, -3))
mod:SetCreatureID(15936)
mod:RegisterCombat("combat")
mod:EnableModel()
mod:RegisterEvents(
"PLAYER_ALIVE"
)
-----TELEPORT-----
local warnTeleportSoon = mod:NewAnnounce("Teleport to Platform Soon", 2, 46573, nil, "Show pre-warning for Heigan teleporting to the platform")
local warnTeleportNow = mod:NewAnnounce("Teleport to Platform Now", 3, 46573, nil, "Show warning for Heigan teleporting to the platform")
local timerTeleport = mod:NewTimer(90, "Teleport to Platform", 46573, nil, "Show timer for Heigan teleporting to the platform")
-----DANCE ENDS----
local timerDanceEnds = mod:NewTimer(47, "Dance Ends", 46573, nil, "Show timer for the end of the Safety Dance")
local warnDanceEndsSoon = mod:NewAnnounce("Dance Ends Soon", 2, 46573, nil, "Show pre-warning for the end of the Safety Dance")
local warnDanceEnds = mod:NewAnnounce("Dance Ends Now", 3, 46573, nil, "Show warning for the end of the Safety Dance")
-----SPELL DISRUPTION------
local specWarnSpellDisruption = mod:NewSpecialWarningYou(29310, false)
local specWarnBurningFever = mod:NewSpecialWarningYou(1003068)
-----Touch of the Unclean-----
local warnTouch = mod:NewAnnounce(L.HeiganTouch, 2, 196780)-- 196791 heroic
local warnTouchHC = mod:NewAnnounce(L.HeiganTouchHC, 2, 196791)
-----MISC-----
local berserkTimer = mod:NewBerserkTimer(540)
-----BOSS FUNCTIONS-----
function mod:OnCombatStart(delay)
berserkTimer:Start(540-delay)
mod:SlowDancePhase()
end
function mod:DancePhase()
timer = 45
timerDanceEnds:Show(timer)
warnDanceEndsSoon:Schedule(timer-10, 10)
warnDanceEnds:Schedule(timer)
self:ScheduleMethod(timer, "SlowDancePhase")
end
function mod:SlowDancePhase()
timer = 90
timerTeleport:Show(timer)
warnTeleportSoon:Schedule(timer-15, 15)
warnTeleportNow:Schedule(timer)
self:ScheduleMethod(timer, "DancePhase")
end
function mod:SPELL_AURA_APPLIED(args)
if args:IsSpellID(29310) then
if args:IsPlayer() then
specWarnSpellDisruption:Show();
end
elseif args:IsSpellID(1003068) then
if args:IsPlayer() then
specWarnBurningFever:Show();
SendChatMessage(L.YellBurningFever, "YELL")
end
elseif args:IsSpellID(196780) then
warnTouch:Show(args.spellName, args.destName, args.amount or 1)
elseif args:IsSpellID(196791) then
warnTouchHC:Show(args.spellName, args.destName, args.amount or 1)
end
end
function mod:SPELL_AURA_APPLIED_DOSE(args)
if args:IsSpellID(29310) then
if args:IsPlayer() then
specWarnSpellDisruption:Show();
end
elseif args:IsSpellID(1003068) then
if args:IsPlayer() then
specWarnBurningFever:Show();
SendChatMessage(L.YellBurningFever, "YELL")
end
elseif args:IsSpellID(196780) then
warnTouch:Show(args.spellName, args.destName, args.amount or 1)
elseif args:IsSpellID(196791) then
warnTouchHC:Show(args.spellName, args.destName, args.amount or 1)
end
end