Skip to content

Commit

Permalink
since addons already enabled, push current dungeon work
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalOS committed Apr 18, 2024
1 parent fe9e1b4 commit dd48896
Show file tree
Hide file tree
Showing 8 changed files with 454 additions and 144 deletions.
10 changes: 0 additions & 10 deletions DBM-Party-Dragonflight/TheAzurevault/Umbrelskul.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ function mod:OnCombatStart(delay)
timerCrystallineRoarCD:Start(12.3-delay)
timerArcaneEruptionCD:Start(28.9-delay)--28.9-37, Highly variable if it gets spell queued behind more tank casts
timerUnleashedDestructionCD:Start(48.2-delay)
if self.Options.InfoFrame then
DBM.InfoFrame:SetHeader(DBM:GetSpellInfo(388777))
DBM.InfoFrame:Show(5, "playerdebuffremaining", 388777)
end
end

function mod:OnCombatEnd()
if self.Options.InfoFrame then
DBM.InfoFrame:Hide()
end
end

function mod:SPELL_CAST_START(args)
Expand Down
2 changes: 1 addition & 1 deletion DBM-Party-WarWithin/CinderbrewMeadery/BenkBuzzbee.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mod = DBM:NewMod(2588, "DBM-Party-WarWithin", 7, 1272)
local L = mod:GetLocalizedStrings()

mod:SetRevision("@file-date-integer@")
--mod:SetCreatureID(189232)
mod:SetCreatureID(218000)
mod:SetEncounterID(2931)
--mod:SetHotfixNoticeRev(20220322000000)
--mod:SetMinSyncRevision(20211203000000)
Expand Down
131 changes: 97 additions & 34 deletions DBM-Party-WarWithin/CinderbrewMeadery/BrewMasterAldryr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mod = DBM:NewMod(2586, "DBM-Party-WarWithin", 7, 1272)
local L = mod:GetLocalizedStrings()

mod:SetRevision("@file-date-integer@")
--mod:SetCreatureID(189232)
mod:SetCreatureID(210271)
mod:SetEncounterID(2900)
--mod:SetHotfixNoticeRev(20220322000000)
--mod:SetMinSyncRevision(20211203000000)
Expand All @@ -12,41 +12,87 @@ mod.sendMainBossGUID = true
mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
-- "SPELL_CAST_START",
"SPELL_CAST_START 442525 432198 432179 432229",
-- "SPELL_CAST_SUCCESS",
-- "SPELL_AURA_APPLIED",
-- "SPELL_AURA_REMOVED"
-- "SPELL_PERIODIC_DAMAGE",
-- "SPELL_PERIODIC_MISSED"
-- "UNIT_SPELLCAST_SUCCEEDED boss1"
"SPELL_AURA_APPLIED 431896",
"SPELL_AURA_REMOVED 442525 431896",
"SPELL_PERIODIC_DAMAGE 432182",
"SPELL_PERIODIC_MISSED 432182"
-- "UNIT_SPELLCAST_SUCCEEDED"--All units since we need to find adds casting it (unless boss does)
)

--local warnSomeAbility = mod:NewSpellAnnounce(373087, 3)
--TODO, or use 442611 removed (Disregard) if happy hour removed doesn't work
--TODO, upgrade brawl to higher prio warning?, assuming detection even valid
--TODO, verify nameplate aura for thirsty/Rowdy patrons, cause if they aren't hostile it won't work (in which case switch to auto marking probably)
--TODO, reset counts on happy hour?
local warnHappyHour = mod:NewSpellAnnounce(442525, 3)
local warnHappyHourOver = mod:NewEndAnnounce(442525, 2)
local warnThrowCinderbrew = mod:NewSpellAnnounce(432179, 2)

--local specWarnSomeAbility = mod:NewSpecialWarningDefensive(372858, nil, nil, nil, 1, 2)
local specWarnBlazingBelch = mod:NewSpecialWarningDodgeCount(432198, nil, nil, nil, 2, 2)
local specWarnKegSmash = mod:NewSpecialWarningCount(432229, nil, nil, nil, 1, 2)
--local yellSomeAbility = mod:NewYell(372107)
--local specWarnGTFO = mod:NewSpecialWarningGTFO(372820, nil, nil, nil, 1, 8)

--local timerSomeAbilityCD = mod:NewAITimer(33.9, 372863, nil, nil, nil, 3)

--local castsPerGUID = {}


--function mod:OnCombatStart(delay)

--end

--function mod:OnCombatEnd()
local specWarnBrawl = mod:NewSpecialWarningDodge(445180, nil, nil, nil, 2, 2)
local specWarnGTFO = mod:NewSpecialWarningGTFO(432182, nil, nil, nil, 1, 8)

local timerHappyHourCD = mod:NewAITimer(33.9, 442525, nil, nil, nil, 6)
local timerBlazingBelchCD = mod:NewAITimer(33.9, 432198, nil, nil, nil, 3)
local timerThrowCinderbrewCD = mod:NewAITimer(33.9, 432179, nil, nil, nil, 3)
local timerKegSmashCD = mod:NewAITimer(33.9, 432229, nil, "Tank|Healer", nil, 5, nil, DBM_COMMON_L.TANK_ICON)

mod:AddNamePlateOption("NPAuraOnThirsty", 431896)

mod.vb.happyHourCount = 0
mod.vb.belchCount = 0
mod.vb.cinderbrewCount = 0
mod.vb.kegCount = 0

function mod:OnCombatStart(delay)
self.vb.happyHourCount = 0
self.vb.belchCount = 0
self.vb.cinderbrewCount = 0
self.vb.kegCount = 0
timerBlazingBelchCD:Start(1)
timerHappyHourCD:Start(1)
timerThrowCinderbrewCD:Start(1)
timerKegSmashCD:Start(1)
if self.Options.NPAuraOnThirsty then
DBM:FireEvent("BossMod_EnableHostileNameplates")
end
end

--end
function mod:OnCombatEnd()
if self.Options.NPAuraOnThirsty then
DBM.Nameplate:Hide(true, nil, nil, nil, true, true)
end
end

--[[
function mod:SPELL_CAST_START(args)
local spellId = args.spellId
if spellId == 372107 then
if spellId == 442525 then
self.vb.happyHourCount = self.vb.happyHourCount + 1
warnHappyHour:Show()
timerBlazingBelchCD:Stop()
timerThrowCinderbrewCD:Stop()
timerKegSmashCD:Stop()
elseif spellId == 432198 then
self.vb.belchCount = self.vb.belchCount + 1
specWarnBlazingBelch:Show(self.vb.belchCount)
specWarnBlazingBelch:Play("breathsoon")
timerBlazingBelchCD:Start()
elseif spellId == 432179 then
self.vb.cinderbrewCount = self.vb.cinderbrewCount + 1
warnThrowCinderbrew:Show(self.vb.cinderbrewCount)
timerThrowCinderbrewCD:Start()
elseif spellId == 432229 then
self.vb.kegCount = self.vb.kegCount + 1
if self:IsTanking("player", "boss1", nil, true) then
specWarnKegSmash:Show(self.vb.kegCount)
specWarnKegSmash:Play("carefly")
end
timerKegSmashCD:Start()
end
end
--]]

--[[
function mod:SPELL_CAST_SUCCESS(args)
Expand All @@ -57,25 +103,42 @@ function mod:SPELL_CAST_SUCCESS(args)
end
--]]

--[[
function mod:SPELL_AURA_APPLIED(args)
local spellId = args.spellId
if spellId == 372858 then
if spellId == 431896 then
if self.Options.NPAuraOnThirsty then
DBM.Nameplate:Show(true, args.destGUID, spellId)
end
end
end
--mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
--]]

--[[
function mod:SPELL_AURA_REMOVED(args)
local spellId = args.spellId
if spellId == 442525 then
warnHappyHourOver:Show()
if self:IsMythic() then
specWarnBrawl:Show()
specWarnBrawl:Play("watcstep")
end
timerHappyHourCD:Start(2)
timerBlazingBelchCD:Start(2)
timerThrowCinderbrewCD:Start(2)
timerKegSmashCD:Start(2)
elseif spellId == 431896 then
if self.Options.NPAuraOnThirsty then
DBM.Nameplate:Hide(true, args.destGUID, spellId)
end
end
end

function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spellName)
if spellId == 372820 and destGUID == UnitGUID("player") and self:AntiSpam(3, 2) then
if spellId == 432182 and destGUID == UnitGUID("player") and self:AntiSpam(3, 2) then
specWarnGTFO:Show(spellName)
specWarnGTFO:Play("watchfeet")
end
end
mod.SPELL_PERIODIC_MISSED = mod.SPELL_PERIODIC_DAMAGE
--]]

--[[
function mod:UNIT_DIED(args)
Expand All @@ -88,8 +151,8 @@ end

--[[
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
if spellId == 74859 then
if spellId == 445150 and self:AntiSpam(3, 1) then
specWarnBrawl:Show()
end
end
--]]
128 changes: 100 additions & 28 deletions DBM-Party-WarWithin/CinderbrewMeadery/GoldieBaronbottom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ local mod = DBM:NewMod(2589, "DBM-Party-WarWithin", 7, 1272)
local L = mod:GetLocalizedStrings()

mod:SetRevision("@file-date-integer@")
--mod:SetCreatureID(189232)
mod:SetCreatureID(218523)
mod:SetEncounterID(2930)
mod:SetUsedIcons(1, 2)
--mod:SetHotfixNoticeRev(20220322000000)
--mod:SetMinSyncRevision(20211203000000)
--mod.respawnTime = 29
Expand All @@ -12,60 +13,131 @@ mod.sendMainBossGUID = true
mod:RegisterCombat("combat")

mod:RegisterEventsInCombat(
-- "SPELL_CAST_START",
-- "SPELL_CAST_SUCCESS",
-- "SPELL_AURA_APPLIED",
-- "SPELL_AURA_REMOVED"
"SPELL_CAST_START 435622 435560 436592",
"SPELL_CAST_SUCCESS 436644",
"SPELL_AURA_APPLIED 435789 436644",
-- "SPELL_AURA_APPLIED_DOSE 435789",
"SPELL_AURA_REMOVED 435789 436644"
-- "SPELL_PERIODIC_DAMAGE",
-- "SPELL_PERIODIC_MISSED"
-- "UNIT_SPELLCAST_SUCCEEDED boss1"
)

--local warnSomeAbility = mod:NewSpellAnnounce(373087, 3)

--local specWarnSomeAbility = mod:NewSpecialWarningDefensive(372858, nil, nil, nil, 1, 2)
--local yellSomeAbility = mod:NewYell(372107)
--TODO, track number of remaining bombs and cahnge emphasis of Hail if more than a couple?
--TODO, warn cinderboom going off, but which ID, there are 4 of them, and it might not even be CLEU
--TODO, right event for spread the love timer/announce
--TODO, can bombs be auto marked with https://www.wowhead.com/beta/spell=435567/spread-the-love and https://www.wowhead.com/beta/spell=439517/spread-the-love
--TODO, do timers reset on Hail?
--TODO, can tank sidestep frontal?
local warnSpreadtheLove = mod:NewCountAnnounce(435560, 3)--Maybe change to bomb count not spread count, or show both
local warnBurningRicochet = mod:NewTargetNoFilterAnnounce(436644, 4)

local specWarnLetItHail = mod:NewSpecialWarningCount(435622, nil, nil, nil, 2, 2)
local specWarnBurningRicochet = mod:NewSpecialWarningYouPos(436644, nil, nil, nil, 1, 2)
local yellBurningRicochet = mod:NewShortPosYell(436644)
local yellBurningRicochetFades = mod:NewIconFadesYell(436644)
local specWarnCashCannon = mod:NewSpecialWarningCount(436592, nil, nil, nil, 2, 2)
--local specWarnGTFO = mod:NewSpecialWarningGTFO(372820, nil, nil, nil, 1, 8)

--local timerSomeAbilityCD = mod:NewAITimer(33.9, 372863, nil, nil, nil, 3)

--local castsPerGUID = {}


--function mod:OnCombatStart(delay)

--end
local timerLetItHailCD = mod:NewAITimer(33.9, 435622, nil, nil, nil, 2)
local timerCinderWounds = mod:NewBuffFadesTimer(33.9, 435789, nil, nil, nil, 5, nil, DBM_COMMON_L.MAGIC_ICON)
local timerSpreadtheLoveCD = mod:NewAITimer(33.9, 435560, nil, nil, nil, 5)
local timerBurningRicochetCD = mod:NewAITimer(33.9, 436644, nil, nil, nil, 3)
local timerCashCannonCD = mod:NewAITimer(33.9, 436592, nil, nil, nil, 5, nil, DBM_COMMON_L.TANK_ICON)

mod:AddSetIconOption("SetIconOnRico", 436644, true, false, {1, 2})

mod.vb.hailCount = 0
mod.vb.debuffsTracked = 0
mod.vb.spreadCount = 0
mod.vb.ricochetCount = 0
mod.vb.DebuffIcon = 1
mod.vb.cannonCount = 0

function mod:OnCombatStart(delay)
self.vb.hailCount = 0
self.vb.debuffsTracked = 0
self.vb.spreadCount = 0
self.vb.ricochetCount = 0
self.vb.DebuffIcon = 1
self.vb.cannonCount = 0
timerLetItHailCD:Start(1)
timerSpreadtheLoveCD:Start(1)
timerBurningRicochetCD:Start(1)
timerCashCannonCD:Start(1)
end

--function mod:OnCombatEnd()

--end

--[[
function mod:SPELL_CAST_START(args)
local spellId = args.spellId
if spellId == 372107 then
if spellId == 435622 then
self.vb.hailCount = self.vb.hailCount + 1
specWarnLetItHail:Show(self.vb.hailCount)
specWarnLetItHail:Play("specialsoon")
timerLetItHailCD:Start()
elseif spellId == 435560 then
self.vb.spreadCount = self.vb.spreadCount + 1
warnSpreadtheLove:Show(self.vb.spreadCount)
timerSpreadtheLoveCD:Start()
elseif spellId == 436592 then
self.vb.cannonCount = self.vb.cannonCount + 1
if self:IsTanking("player", "boss1", nil, true) then
specWarnCashCannon:Show()
specWarnCashCannon:Play("carefly")
end
timerCashCannonCD:Start()
end
end
--]]

--[[
function mod:SPELL_CAST_SUCCESS(args)
local spellId = args.spellId
if spellId == 372858 then
if spellId == 436644 and self:AntiSpam(3, 1) then
self.vb.DebuffIcon = 1
self.vb.ricochetCount = self.vb.ricochetCount + 1
timerBurningRicochetCD:Start()
end
end
--]]

--[[

function mod:SPELL_AURA_APPLIED(args)
local spellId = args.spellId
if spellId == 372858 then
if spellId == 435789 then
self.vb.debuffsTracked = self.vb.debuffsTracked + 1
if self.vb.debuffsTracked == 1 then
timerCinderWounds:Start()
end
elseif spellId == 436644 then
local icon = self.vb.DebuffIcon
if self.Options.SetIconOnExplosiveEruption then
self:SetIcon(args.destName, icon)
end
if args:IsPlayer() then
specWarnBurningRicochet:Show(self:IconNumToTexture(icon))
specWarnBurningRicochet:Play("targetyou")--"mm"..icon
yellBurningRicochet:Yell(icon, icon)
yellBurningRicochetFades:Countdown(spellId, nil, icon)
else
warnBurningRicochet:CombinedShow(0.5, args.destName)
end
self.vb.DebuffIcon = self.vb.DebuffIcon + 1
end
end
--mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
--]]

function mod:SPELL_AURA_REMOVED(args)
local spellId = args.spellId
if spellId == 435789 then
self.vb.debuffsTracked = self.vb.debuffsTracked - 1
if self.vb.debuffsTracked == 0 then
timerCinderWounds:Stop()
end
elseif spellId == 436644 then

end
end

--[[
function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId, spellName)
Expand Down
2 changes: 1 addition & 1 deletion DBM-Party-WarWithin/CinderbrewMeadery/Ipa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mod = DBM:NewMod(2587, "DBM-Party-WarWithin", 7, 1272)
local L = mod:GetLocalizedStrings()

mod:SetRevision("@file-date-integer@")
--mod:SetCreatureID(189232)
mod:SetCreatureID(210267)
mod:SetEncounterID(2929)
--mod:SetHotfixNoticeRev(20220322000000)
--mod:SetMinSyncRevision(20211203000000)
Expand Down
Loading

0 comments on commit dd48896

Please sign in to comment.