Skip to content

Commit

Permalink
ICC-Trash: add Frostblade timer on Nerub'ar gauntlet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Jan 6, 2025
1 parent 3f83515 commit f0340df
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion DBM-Icecrown/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local L = mod:GetLocalizedStrings()

local UnitGUID = UnitGUID

mod:SetRevision("20240812000216")
mod:SetRevision("20250106224658")
mod:SetModelID(37007)
mod:SetUsedIcons(1, 2, 3, 4, 5, 6, 7, 8)
mod.isTrashMod = true
Expand Down Expand Up @@ -70,6 +70,7 @@ local timerChainsofShadow = mod:NewTargetTimer(10, 70645, nil, false, nil, 3)
--Frostwing Hall
local timerConflag = mod:NewTargetTimer(10, 71785, nil, false, nil, 3)
local timerBanish = mod:NewTargetTimer(6, 71298, nil, false, nil, 3)
local timerFrostblade = mod:NewNextTimer(26, 70305, nil, nil, nil, 2)

mod:RemoveOption("HealthFrame")
--Lower Spire
Expand All @@ -80,6 +81,8 @@ mod:AddSetIconOption("BloodMirrorIcon", 70451, false, 0, {2})

local valkyrHeraldGUID = {}
local eventProfessorStarted = false
mod.vb.nerubarAlive = 16 -- 8 each wave
mod.vb.frostwardenAlive = 6

function mod:SPELL_CAST_START(args)
local spellId = args.spellId
Expand Down Expand Up @@ -201,6 +204,20 @@ function mod:UNIT_DIED(args)
timerBlightBomb:Cancel(destGUID)
elseif cid == 37098 then -- Val'kyr Herald
self:SendSync("ValkyrDeaggro", destGUID) -- would work with just timer cancel method, but switched to sync too since valk table is heavily dependant on syncing, and CLEU has a history of breaking
elseif (cid == 37501 or cid == 37502) and self.vb.nerubarAlive > 0 then -- 4 Nerub'ar Champion / 4 Nerub'ar Webweaver (first and third gauntlet wave)
self.vb.nerubarAlive = self.vb.nerubarAlive - 1
if self.vb.nerubarAlive == 8 then
DBM:AddSpecialEventToTranscriptorLog("Sindra Gauntlet 2nd wave")
self.vb.frostwardenAlive = 6
timerFrostblade:Start() -- REVIEW! ~26s after last nerubar dies
elseif self.vb.nerubarAlive == 0 then
DBM:AddSpecialEventToTranscriptorLog("Sindra Gauntlet ended")
end
elseif (cid == 37228 or cid == 37229) and self.vb.frostwardenAlive > 0 then -- 4 Frostwarden Warrior / 2 Frostwarden Sorceress
self.vb.frostwardenAlive = self.vb.frostwardenAlive - 1
if self.vb.frostwardenAlive == 0 then
DBM:AddSpecialEventToTranscriptorLog("Sindra Gauntlet 3rd wave")
end
end
end

Expand Down Expand Up @@ -263,7 +280,9 @@ function mod:OnSync(msg, guid)
elseif msg == "FleshTrap" then
specWarnTrapP:Show()
elseif msg == "GauntletStart" then
DBM:AddSpecialEventToTranscriptorLog("Sindra Gauntlet started")
specWarnGosaEvent:Show()
self.vb.nerubarAlive = 8
elseif msg == "ValkyrAggro" and guid then
valkyrHeraldGUID[guid] = true
timerSeveredEssence:Start(8, guid) -- REVIEW! variance [8-10]? On Warmane, based on aggro, touchdown or swing?
Expand Down

0 comments on commit f0340df

Please sign in to comment.