Skip to content

Commit

Permalink
Rework staging on Lorgus Jett now that the add mechanics are figured …
Browse files Browse the repository at this point in the history
…out.

also added an adds remaining alert for it
  • Loading branch information
MysticalOS committed Dec 9, 2023
1 parent e313392 commit 31ae424
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
29 changes: 27 additions & 2 deletions DBM-Raids-Vanilla/VanillaSoD_BFD/LorgusJett.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ mod:RegisterEventsInCombat(
)

--[[
(ability.id = 419649 or ability.id = 414691 or ability.id = 414763 or ability.id = 419636) and type = "cast"
or (target.id = 207367 or target.id = 207358 or target.id = 214603 or target.id = 207359) and type = "death"
or (source.type = "NPC" and source.firstSeen = timestamp) or (target.type = "NPC" and target.firstSeen = timestamp)
--]]
--TODO, more stage 1 add stuff, maybe more spawn timers?
--TODO, Triple Puncture stacks 407794?
--TODO, find a way to detect stage 2 start in cleaner better way
--NOTE, New Totem every 9.5 seconds. Windfury 414691 -- > Lighting Shield 414763 -- > Molten Fury 419636 -- > repeat.
--local warnSleep = mod:NewTargetNoFilterAnnounce(8399, 2)
local warnPriestRemaining = mod:NewAnnounce("warnPriestRemaining", 2)
local warnPhase2 = mod:NewPhaseAnnounce(2, 2)
local warnBlackfathomMurloc = mod:NewSpellAnnounce(419649, 2)
local warnWindfuryTotem = mod:NewSpellAnnounce(414691, 2)
local warnMoltenFuryTotem = mod:NewSpellAnnounce(419636, 2)
Expand All @@ -45,8 +48,10 @@ mod:AddSetIconOption("SetIconOnAdds", 419649, true, 5, {1, 2})
mod:AddSetIconOption("SetIconOnTotem", 414763, true, 5, {8})

mod.vb.iconCount = 1
mod.vb.priestessRemaining = 3

function mod:OnCombatStart(delay)
self.vb.priestessRemaining = 3
timerBlackfathomMurlocCD:Start(27.5-delay)
self:SetStage(1)
end
Expand All @@ -69,7 +74,7 @@ function mod:SPELL_CAST_SUCCESS(args)
warnBlackfathomMurloc:Show()
timerBlackfathomMurlocCD:Start()
elseif args:IsSpell(414691) then--Windfury totem
if self:GetStage(1) then
if self:GetStage(1) then--Shouldn't be needed, but i'll leave it
self:SetStage(2)
timerBlackfathomMurlocCD:Stop()
end
Expand Down Expand Up @@ -108,11 +113,31 @@ end
-- end
--end

--"<8.52 23:15:31> [ENCOUNTER_START] 2710#Lorgus Jett#198#10", -- [62]
--"<55.83 23:16:19> [CLEU] UNIT_DIED##nil#Creature-0-5164-48-15397-207358-00006C001D#Blackfathom Tide Priestess#-1#false#nil#nil", -- [1456]
--"<76.80 23:16:39> [CLEU] UNIT_DIED##nil#Creature-0-5164-48-15397-207359-00006C001D#Blackfathom Tide Priestess#-1#false#nil#nil", -- [1974]
--"<98.10 23:17:01> [CLEU] UNIT_DIED##nil#Creature-0-5164-48-15397-207367-00006C001D#Blackfathom Tide Priestess#-1#false#nil#nil", -- [2510]
--"<104.41 23:17:07> [CLEU] SPELL_CAST_SUCCESS#Creature-0-5164-48-15397-207356-00006C001D#Lorgus Jett##nil#414691#Corrupted Windfury Totem#nil#nil", -- [2676]
function mod:UNIT_DIED(args)
local cid = self:GetCIDFromGUID(args.destGUID)
if cid == 204645 or cid == 204091 or cid == 209209 then--Blackfathom Elites
timerTriplePunctureCD:Stop(args.destGUID)
elseif cid == 207367 or cid == 207358 or cid == 214603 or cid == 207359 then--Blackfathom Tide Priestess
timerHealCD:Stop(args.destGUID)
--Boss versions, 214603 is trash version thats included only if non boss version is pulled and we want to stop a heal timer
if cid == 207367 or cid == 207358 or cid == 207359 then
self.vb.priestessRemaining = self.vb.priestessRemaining - 1
if self.vb.priestessRemaining > 0 then
warnPriestRemaining:Show(self.vb.priestessRemaining)
end
if cid == 207367 then--Last add dying
if self:GetStage(1) then
self:SetStage(2)
warnPhase2:Show()
timerBlackfathomMurlocCD:Stop()
timerWindfuryTotemCD:Start(6.3)
end
end
end
end
end
8 changes: 8 additions & 0 deletions DBM-Raids-Vanilla/localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,14 @@ L:SetGeneralLocalization({
name = "Lorgus Jett"
})

L:SetWarningLocalization({
warnPriestRemaining = "%s Priestesses remaining"
})

L:SetOptionLocalization({
warnPriestRemaining = "Show warning for how maining Blackfathom Tide Priestesses are remaining"
})

------------------
-- Twilight Lord Kelris --
------------------
Expand Down

0 comments on commit 31ae424

Please sign in to comment.