Skip to content

Commit

Permalink
Add drycodes for remaining 2 bosses in 11.1 dungeon
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Dec 23, 2024
1 parent c7d3684 commit 3b12328
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 56 deletions.
119 changes: 85 additions & 34 deletions DBM-Party-WarWithin/OperationFloodgate/GeezNuts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,71 +14,122 @@ mod.sendMainBossGUID = true
mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
-- "SPELL_CAST_START",
-- "SPELL_CAST_SUCCESS",
-- "SPELL_AURA_APPLIED",
-- "SPELL_AURA_REMOVED"
"SPELL_CAST_START 465463 468841 468813 468815 466190",
"SPELL_CAST_SUCCESS 468276",
"SPELL_AURA_APPLIED 468741 468616 468815",
-- "SPELL_AURA_REMOVED"
"SPELL_AURA_REMOVED 465463 468616",
-- "SPELL_PERIODIC_DAMAGE",
-- "SPELL_PERIODIC_MISSED"
-- "UNIT_SPELLCAST_SUCCEEDED boss1"
"UNIT_SPELLCAST_SUCCEEDED boss1"
)

--TODO, evertthing
--local warnImpale = mod:NewCountAnnounce(433425, 3)
--
--local specWarnInfestation = mod:NewSpecialWarningMoveAway(433740, nil, nil, nil, 1, 2)
--local yellInfestation = mod:NewShortYell(433740)
--local yellInfestationFades = mod:NewShortFadesYell(433740)
--local specWarnSilkenRestraints = mod:NewSpecialWarningInterrupt(442210, "HasInterrupt", nil, nil, 1, 2, 4)
--TODO, improve timer handling around boss energy and Turbo Charge
--TODO, find right spell trigger for Dam!
--NOTE, Leaping Sparks script does NOT have block for target scanning, so if they private debuff, we can still see target anyways
--NOTE, https://www.wowhead.com/ptr-2/spell=468844/leaping-spark summons the spark
--TODO, record new audio if "move to pool" causes lack of clarity to specifically say "move spark to pool"
--TODO, verify cast ID for starting Gigazap Timer
local warnTurboChargeOver = mod:NewEndAnnounce(465463, 1)
local warnDam = mod:NewCountAnnounce(468276, 2)
local warnShockWaterStun = mod:NewTargetNoFilterAnnounce(468741, 2)
local warnLeapingSpark = mod:NewTargetNoFilterAnnounce(468841, 2)
local warnGigaZapLater = mod:NewTargetNoFilterAnnounce(468813, 3, nil, "Healer")--Pre target is private aura, but dot is not, we can still warn the healer who has dots

local specWarnTurboCharge = mod:NewSpecialWarningDodgeCount(465463, nil, nil, nil, 2, 2)
local specWarnLeapingSpark = mod:NewSpecialWarningRun(468841, nil, nil, nil, 4, 15)
local yellLeapingSpark = mod:NewShortYell(468841)
local specWarnThunderPunch = mod:NewSpecialWarningDefensive(466190, nil, nil, nil, 1, 2)
--local specWarnGTFO = mod:NewSpecialWarningGTFO(372820, nil, nil, nil, 1, 8)

--local timerImpaleCD = mod:NewAITimer(33.9, 433425, nil, nil, nil, 3)
local timerTurboChargeCD = mod:NewAITimer(33.9, 465463, nil, nil, nil, 6)
local timerDamCD = mod:NewAITimer(33.9, 468276, nil, nil, nil, 3)
local timerLeapingSparksCD = mod:NewAITimer(33.9, 468841, nil, nil, nil, 3)
local timerGigazapCD = mod:NewAITimer(33.9, 468813, nil, nil, nil, 3, nil, DBM_COMMON_L.HEALER_ICON)
local timerThunderPunchCD = mod:NewAITimer(33.9, 466190, nil, "Tank|Healer", nil, 5, nil, DBM_COMMON_L.TANK_ICON)

function mod:OnCombatStart(delay)
mod:AddPrivateAuraSoundOption(468811, true, 468813, 1)--Gigazap

mod.vb.turboChargeCount = 0
mod.vb.damCount = 0
mod.vb.sparksCount = 0
mod.vb.gigaZapCount = 0
mod.vb.punchCount = 0

function mod:OnCombatStart(delay)
self.vb.turboChargeCount = 0
self.vb.damCount = 0
self.vb.sparksCount = 0
self.vb.gigaZapCount = 0
self.vb.punchCount = 0
timerTurboChargeCD:Start(1-delay)
timerDamCD:Start(1-delay)
timerLeapingSparksCD:Start(1-delay)
timerGigazapCD:Start(1-delay)
timerThunderPunchCD:Start(1-delay)
self:EnablePrivateAuraSound(468811, "defensive", 2)
end

--function mod:OnCombatEnd()

--end

--[[
function mod:SPELL_CAST_START(args)
local spellId = args.spellId
if spellId == 435012 then
if spellId == 465463 then
self.vb.turboChargeCount = self.vb.turboChargeCount + 1
specWarnTurboCharge:Show(self.vb.turboChargeCount)
specWarnTurboCharge:Play("watchstep")
timerTurboChargeCD:Start()
elseif spellId == 468841 then
self.vb.sparksCount = self.vb.sparksCount + 1
timerLeapingSparksCD:Start()
elseif spellId == 468813 then
self.vb.gigaZapCount = self.vb.gigaZapCount + 1
timerGigazapCD:Start()
elseif spellId == 466190 then
self.vb.punchCount = self.vb.punchCount + 1
if self:IsTanking("player", "boss1", nil, true) then
specWarnThunderPunch:Show()
specWarnThunderPunch:Play("defensive")
end
timerThunderPunchCD:Start()
end
end
--]]

--[[
function mod:SPELL_CAST_SUCCESS(args)
local spellId = args.spellId
if spellId == 433740 then
if spellId == 468276 and self:AntiSpam(8, 1) then
self.vb.damCount = self.vb.damCount + 1
warnDam:Show(self.vb.damCount)
timerDamCD:Start()
end
end
--]]

--[[
function mod:SPELL_AURA_APPLIED(args)
local spellId = args.spellId
if spellId == 433740 then
if spellId == 468741 and args:IsPlayer() or self:IsHealer() then
warnShockWaterStun:CombinedShow(0.3, args.destName)
elseif spellId == 468616 then
if args:IsPlayer() then
specWarnLeapingSpark:Show()
specWarnLeapingSpark:Play("movetopool")
yellLeapingSpark:Yell()
else
warnLeapingSpark:Show(args.destName)
end
elseif spellId == 468815 then
warnGigaZapLater:PreciseShow(2, args.destName)
end
end
--mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
--]]

--[[
function mod:SPELL_AURA_REMOVED(args)
local spellId = args.spellId
if spellId == 434408 then
if spellId == 465463 then
warnTurboChargeOver:Show()
end
end
--]]

--[[
function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spellName)
Expand All @@ -99,10 +150,10 @@ function mod:UNIT_DIED(args)
end
--]]

--[[
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
if spellId == 74859 then
if spellId == 468276 and self:AntiSpam(8, 1) then
self.vb.damCount = self.vb.damCount + 1
warnDam:Show(self.vb.damCount)
timerDamCD:Start()
end
end
--]]
91 changes: 69 additions & 22 deletions DBM-Party-WarWithin/OperationFloodgate/Swampface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,62 +14,109 @@ mod.sendMainBossGUID = true
mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
-- "SPELL_CAST_START",
-- "SPELL_CAST_SUCCESS",
-- "SPELL_AURA_APPLIED",
"SPELL_CAST_START 473070 473112 469478",
"SPELL_CAST_SUCCESS 470039 473112",
"SPELL_AURA_APPLIED 470038 473112"
-- "SPELL_AURA_REMOVED"
-- "SPELL_AURA_REMOVED"
-- "SPELL_PERIODIC_DAMAGE",
-- "SPELL_PERIODIC_MISSED"
-- "UNIT_SPELLCAST_SUCCEEDED boss1"
)

--TODO, evertthing
--TODO, Improve the code for pairing once we have context of how it all works to announce who your pair partner is
--TODO, potentially fix mudslide trigger
--local warnImpale = mod:NewCountAnnounce(433425, 3)
--
--local specWarnInfestation = mod:NewSpecialWarningMoveAway(433740, nil, nil, nil, 1, 2)
--local yellInfestation = mod:NewShortYell(433740)

local specWarnRazorchokeVines = mod:NewSpecialWarningYouCount(433740, nil, nil, nil, 1, 2)--Pre target debuff
--local yellRazorchokeVines = mod:NewShortYell(433740)
--local yellInfestationFades = mod:NewShortFadesYell(433740)
--local specWarnSilkenRestraints = mod:NewSpecialWarningInterrupt(442210, "HasInterrupt", nil, nil, 1, 2, 4)
local specWarnAwakenSwamp = mod:NewSpecialWarningDodgeCount(473070, nil, nil, nil, 2, 2)
local specWarnMudslide = mod:NewSpecialWarningDodgeCount(473112, nil, nil, nil, 2, 2)
local specWarnSludgeClaws = mod:NewSpecialWarningDefensive(469478, nil, nil, nil, 1, 2)
--local specWarnGTFO = mod:NewSpecialWarningGTFO(372820, nil, nil, nil, 1, 8)

--local timerImpaleCD = mod:NewAITimer(33.9, 433425, nil, nil, nil, 3)
local timerRazorchokeVinesCD = mod:NewAITimer(33.9, 470039, nil, nil, nil, 3)
local timerAwakenSwampCD = mod:NewAITimer(33.9, 473070, nil, nil, nil, 3)
local timerMudslideCD = mod:NewAITimer(33.9, 473112, nil, nil, nil, 3)
local timerSludgeClawsCD = mod:NewAITimer(33.9, 469478, nil, "Tank|Healer", nil, 5, nil, DBM_COMMON_L.TANK_ICON)

function mod:OnCombatStart(delay)
mod.vb.vinesCount = 0
mod.vb.swampCount = 0
mod.vb.mudslideCount = 0
mod.vb.clawsCount = 0

function mod:OnCombatStart(delay)
self.vb.vinesCount = 0
self.vb.swampCount = 0
self.vb.mudslideCount = 0
self.vb.clawsCount = 0
timerRazorchokeVinesCD:Start(1-delay)
timerAwakenSwampCD:Start(1-delay)
timerMudslideCD:Start(1-delay)
timerSludgeClawsCD:Start(1-delay)
end

--function mod:OnCombatEnd()

--end

--[[
function mod:SPELL_CAST_START(args)
local spellId = args.spellId
if spellId == 435012 then
if spellId == 473070 then
self.vb.swampCount = self.vb.swampCount + 1
specWarnAwakenSwamp:Show(self.vb.swampCount)
specWarnAwakenSwamp:Play("watchstep")
timerAwakenSwampCD:Start()--33.9, self.vb.swampCount+1
elseif spellId == 473112 and self:AntiSpam(10, 2) then
self.vb.mudslideCount = self.vb.mudslideCount + 1
specWarnMudslide:Show(self.vb.mudslideCount)
specWarnMudslide:Play("watchstep")
timerMudslideCD:Start()--33.9, self.vb.mudslideCount+1
elseif spellId == 469478 then
self.vb.clawsCount = self.vb.clawsCount + 1
if self:IsTanking("player", "boss1", nil, true) then
specWarnSludgeClaws:Show()
specWarnSludgeClaws:Play("defensive")
end
timerSludgeClawsCD:Start()--33.9, self.vb.clawsCount+1
end
end
--]]

--[[
function mod:SPELL_CAST_SUCCESS(args)
local spellId = args.spellId
if spellId == 433740 then
if spellId == 470039 and self:AntiSpam(8, 1) then
self.vb.vinesCount = self.vb.vinesCount + 1
timerRazorchokeVinesCD:Start()--33.9, self.vb.vinesCount+1
elseif spellId == 473112 and self:AntiSpam(10, 2) then
self.vb.mudslideCount = self.vb.mudslideCount + 1
specWarnMudslide:Show(self.vb.mudslideCount)
specWarnMudslide:Play("watchstep")
timerMudslideCD:Start()--33.9, self.vb.mudslideCount+1
end
end
--]]

--[[
function mod:SPELL_AURA_APPLIED(args)
local spellId = args.spellId
if spellId == 433740 then
if spellId == 470038 then
if self:AntiSpam(8, 1) then
self.vb.vinesCount = self.vb.vinesCount + 1
timerRazorchokeVinesCD:Start()--33.9, self.vb.vinesCount+1
end
if args:IsPlayer() then
specWarnRazorchokeVines:Show(self.vb.vinesCount)
specWarnRazorchokeVines:Play("gathershare")
end
elseif spellId == 473112 and self:AntiSpam(10, 2) then
self.vb.mudslideCount = self.vb.mudslideCount + 1
specWarnMudslide:Show(self.vb.mudslideCount)
specWarnMudslide:Play("watchstep")
timerMudslideCD:Start()--33.9, self.vb.mudslideCount+1
-- elseif spellId == 473508 or spellId == 470041 then
--DO stuff
end
end
--mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
--]]

--[[
function mod:SPELL_AURA_REMOVED(args)
Expand Down

0 comments on commit 3b12328

Please sign in to comment.