Skip to content

Commit

Permalink
MoltenCore/TheMoltenCore: Add warnings for adds
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Aug 5, 2024
1 parent 86e8414 commit aa16f40
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions MoltenCore/TheMoltenCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ if L then
L.custom_on_linked_spam = CL.link_say_option_name
L.custom_on_linked_spam_desc = CL.link_say_option_desc
L.custom_on_linked_spam_icon = mod:GetMenuIcon("SAY")

L.adds_icon = "spell_fire_elemental_totem"
end

--------------------------------------------------------------------------------
Expand All @@ -49,6 +51,7 @@ function mod:GetOptions()
460887, -- Harmonic Tremor
{460885, "CASTBAR", "EMPHASIZE", "CASTBAR_COUNTDOWN"}, -- Doomsday
{"health", "INFOBOX"},
"adds",
},nil,{
[460898] = CL.count:format(CL.link, 1), -- Heart of Ash (Link 1)
[460895] = CL.count:format(CL.link, 2), -- Heart of Cinder (Link 2)
Expand Down Expand Up @@ -76,6 +79,7 @@ function mod:OnBossEnable()
self:Log("SWING_DAMAGE", "SwingDamage", "*")
self:Log("SPELL_DAMAGE", "SpellDamage", "*")
self:Death("FirefighterDeaths", 228820)
self:Log("SPELL_CAST_SUCCESS", "ConjureFlame", 462619)
end

function mod:OnEngage()
Expand All @@ -85,6 +89,7 @@ function mod:OnEngage()
firefighters = {}
lineCount = 3
self:OpenInfo("health", CL.other:format("BigWigs", CL.health))
self:CDBar("adds", 28.8, CL.adds, L.adds_icon)
end

--------------------------------------------------------------------------------
Expand Down Expand Up @@ -216,5 +221,14 @@ function mod:FirefighterDeaths(args)
local line = tbl[1]
self:SetInfoBar("health", line, 0)
self:SetInfo("health", line + 1, CL.dead)
if not next(tbl) then
self:StopBar(CL.adds)
end
end
end

function mod:ConjureFlame()
self:CDBar("adds", 31, CL.adds, L.adds_icon)
self:Message("adds", "cyan", CL.adds_spawned, L.adds_icon)
self:PlaySound("adds", "info")
end

0 comments on commit aa16f40

Please sign in to comment.