Skip to content

Commit

Permalink
MoltenCore: Guesswork for SoD
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jul 23, 2024
1 parent 8043244 commit 9b11c28
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 43 deletions.
38 changes: 22 additions & 16 deletions MoltenCore/BaronGeddon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "Inferno", 19695)
self:Log("SPELL_CAST_SUCCESS", "Armageddon", 20478)
self:Log("SPELL_CAST_SUCCESS", "IgniteMana", 19659)
if self:Vanilla() then
self:Log("SPELL_AURA_APPLIED", "LivingBomb", 461090, 461105, 462402) -- XXX verify
self:Log("SPELL_AURA_REMOVED", "LivingBombRemoved", 461090, 461105, 462402) -- XXX verify
self:Log("SPELL_CAST_SUCCESS", "Inferno", 461087, 461110) -- XXX verify
self:Log("SPELL_CAST_SUCCESS", "Armageddon", 461862)
end
end

function mod:OnEngage()
Expand All @@ -40,33 +46,33 @@ end

function mod:LivingBomb(args)
if self:Me(args.destGUID) then
self:Say(args.spellId, CL.bomb, nil, "Bomb")
self:SayCountdown(args.spellId, 8)
self:Say(20475, CL.bomb, nil, "Bomb")
self:SayCountdown(20475, 8)
end
self:TargetMessage(args.spellId, "red", args.destName, CL.bomb)
self:TargetBar(args.spellId, 8, args.destName, CL.bomb)
self:PrimaryIcon(args.spellId, args.destName)
self:PlaySound(args.spellId, "warning")
self:TargetMessage(20475, "red", args.destName, CL.bomb)
self:TargetBar(20475, 8, args.destName, CL.bomb)
self:PrimaryIcon(20475, args.destName)
self:PlaySound(20475, "warning")
end

function mod:LivingBombRemoved(args)
if self:Me(args.destGUID) then
self:CancelSayCountdown(args.spellId)
self:CancelSayCountdown(20475)
end
self:StopBar(CL.bomb, args.destName)
self:PrimaryIcon(args.spellId)
self:PrimaryIcon(20475)
end

function mod:Inferno(args)
self:Message(args.spellId, "red")
self:CastBar(args.spellId, 8)
self:CDBar(args.spellId, 21) -- 21-29
self:PlaySound(args.spellId, "long")
function mod:Inferno()
self:Message(19695, "red")
self:CastBar(19695, 8)
self:CDBar(19695, 21) -- 21-29
self:PlaySound(19695, "long")
end

function mod:Armageddon(args)
self:Bar(args.spellId, 8)
self:Message(args.spellId, "orange")
function mod:Armageddon()
self:Bar(20478, 8)
self:Message(20478, "orange")
end

function mod:IgniteMana(args)
Expand Down
4 changes: 2 additions & 2 deletions MoltenCore/Garr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "Pulse", 19492)
self:Log("SPELL_CAST_SUCCESS", "AntimagicPulse", 19492)
end

function mod:OnEngage()
Expand All @@ -30,7 +30,7 @@ end
-- Event Handlers
--

function mod:Pulse(args)
function mod:AntimagicPulse(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 17)
end
20 changes: 17 additions & 3 deletions MoltenCore/Gehennas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ if not mod then return end
mod:RegisterEnableMob(12259)
mod:SetEncounterID(665)

--------------------------------------------------------------------------------
-- Localization
--

local L = mod:GetLocale()
if L then
L["19716_desc"] = BigWigsLoader.isSeasonOfDiscovery and 461232 or 19716
end

--------------------------------------------------------------------------------
-- Locals
--
Expand All @@ -32,6 +41,11 @@ function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "GehennasCurseApplied", 19716)
self:Log("SPELL_AURA_REMOVED", "GehennasCurseRemoved", 19716)
self:Log("SPELL_AURA_APPLIED", "RainOfFire", 19717)
if self:Vanilla() then
self:Log("SPELL_CAST_SUCCESS", "GehennasCurse", 461232)
self:Log("SPELL_AURA_APPLIED", "GehennasCurseApplied", 461232)
self:Log("SPELL_AURA_REMOVED", "GehennasCurseRemoved", 461232)
end
end

function mod:OnEngage()
Expand All @@ -46,8 +60,8 @@ end

function mod:GehennasCurse(args)
curseTime = args.time
self:CDBar(args.spellId, 27, CL.curse) -- 27-37
self:Message(args.spellId, "orange", CL.curse)
self:CDBar(19716, 27, CL.curse) -- 27-37
self:Message(19716, "orange", CL.curse)
end

function mod:GehennasCurseApplied(args)
Expand All @@ -60,7 +74,7 @@ function mod:GehennasCurseRemoved(args)
if self:Player(args.destFlags) then -- Players, not pets
curseCount = curseCount - 1
if curseCount == 0 then
self:Message(args.spellId, "green", CL.removed_after:format(CL.curse, args.time-curseTime))
self:Message(19716, "green", CL.removed_after:format(CL.curse, args.time-curseTime))
end
end
end
Expand Down
22 changes: 14 additions & 8 deletions MoltenCore/Lucifron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "DominateMind", 20604)
self:Log("SPELL_AURA_APPLIED", "DominateMindApplied", 20604)
self:Log("SPELL_AURA_REMOVED", "DominateMindRemoved", 20604)
if self:Vanilla() then
self:Log("SPELL_CAST_SUCCESS", "ImpendingDoom", 460931)
self:Log("SPELL_CAST_SUCCESS", "LucifronsCurse", 460932)
self:Log("SPELL_AURA_APPLIED", "LucifronsCurseApplied", 460932)
self:Log("SPELL_AURA_REMOVED", "LucifronsCurseRemoved", 460932)
end
end

function mod:OnEngage()
Expand All @@ -54,17 +60,17 @@ end
-- Event Handlers
--

function mod:ImpendingDoom(args)
self:CDBar(args.spellId, 20)
self:Message(args.spellId, "red")
self:PlaySound(args.spellId, "long")
function mod:ImpendingDoom()
self:CDBar(19702, 20)
self:Message(19702, "red")
self:PlaySound(19702, "long")
end

function mod:LucifronsCurse(args)
curseTime = args.time
self:CDBar(args.spellId, 20, CL.curse)
self:Message(args.spellId, "yellow", CL.curse)
self:PlaySound(args.spellId, "info")
self:CDBar(19703, 20, CL.curse)
self:Message(19703, "yellow", CL.curse)
self:PlaySound(19703, "info")
end

function mod:LucifronsCurseApplied(args)
Expand All @@ -77,7 +83,7 @@ function mod:LucifronsCurseRemoved(args)
if self:Player(args.destFlags) then -- Players, not pets
curseCount = curseCount - 1
if curseCount == 0 then
self:Message(args.spellId, "green", CL.removed_after:format(CL.curse, args.time-curseTime))
self:Message(19703, "green", CL.removed_after:format(CL.curse, args.time-curseTime))
end
end
end
Expand Down
11 changes: 7 additions & 4 deletions MoltenCore/Magmadar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "EnrageFrenzy", 19451)
self:Log("SPELL_DISPEL", "EnrageFrenzyDispelled", "*")
self:Log("SPELL_AURA_APPLIED", "Conflagration", 19428)
if self:Vanilla() then
self:Log("SPELL_CAST_SUCCESS", "Panic", 461125)
end
end

function mod:OnEngage()
Expand All @@ -46,10 +49,10 @@ end
-- Event Handlers
--

function mod:Panic(args)
self:CDBar(args.spellId, 31, CL.fear, L["19408_icon"]) -- 31-50, sometimes even higher
self:Message(args.spellId, "orange", CL.fear, L["19408_icon"])
self:PlaySound(args.spellId, "long")
function mod:Panic()
self:CDBar(19408, 31, CL.fear, L["19408_icon"]) -- 31-50, sometimes even higher
self:Message(19408, "orange", CL.fear, L["19408_icon"])
self:PlaySound(19408, "long")
end

function mod:EnrageFrenzy(args)
Expand Down
2 changes: 1 addition & 1 deletion MoltenCore/Majordomo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function mod:GetOptions()
20619, -- Magic Reflection
21075, -- Damage Shield
20534, -- Teleport
},{
},nil,{
[20619] = CL.spell_reflection, -- Magic Reflection (Spell Reflection)
}
end
Expand Down
20 changes: 12 additions & 8 deletions MoltenCore/Shazzrah.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function mod:OnBossEnable()
self:Log("SPELL_DISPEL", "MagicGroundingDeadenMagicDispelled", "*")
self:Log("SPELL_CAST_SUCCESS", "Counterspell", 19715)
self:Log("SPELL_CAST_SUCCESS", "ShazzrahsCurse", 19713)
if self:Vanilla() then
self:Log("SPELL_CAST_SUCCESS", "GateOfShazzrah", 461344)
self:Log("SPELL_CAST_SUCCESS", "ShazzrahsCurse", 461343)
end
end

function mod:OnEngage()
Expand All @@ -41,10 +45,10 @@ end
-- Event Handlers
--

function mod:GateOfShazzrah(args)
self:CDBar(args.spellId, 41, CL.teleport) -- 41-50
self:Message(args.spellId, "red", CL.teleport)
self:PlaySound(args.spellId, "long")
function mod:GateOfShazzrah()
self:CDBar(23138, 41, CL.teleport) -- 41-50
self:Message(23138, "red", CL.teleport)
self:PlaySound(23138, "long")
end

function mod:MagicGroundingDeadenMagicApplied(args)
Expand All @@ -66,10 +70,10 @@ function mod:Counterspell(args)
self:PlaySound(args.spellId, "info")
end

function mod:ShazzrahsCurse(args)
self:CDBar(args.spellId, 22.6, CL.curse) -- 22.6-25
self:Message(args.spellId, "yellow", CL.curse)
function mod:ShazzrahsCurse()
self:CDBar(19713, 22.6, CL.curse) -- 22.6-25
self:Message(19713, "yellow", CL.curse)
if self:Dispeller("curse") then
self:PlaySound(args.spellId, "warning")
self:PlaySound(19713, "warning")
end
end
19 changes: 18 additions & 1 deletion MoltenCore/TheMoltenCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ end
function mod:GetOptions()
return {
"stages",
{460895, "SAY", "ME_ONLY_EMPHASIZE"}, -- Heart of Cinder
{460898, "SAY", "ME_ONLY_EMPHASIZE"}, -- Heart of Ash
}
end

Expand All @@ -33,7 +35,10 @@ function mod:OnRegister()
end

function mod:OnBossEnable()

self:Log("SPELL_AURA_APPLIED", "HeartOfCinderApplied", 460895)
--self:Log("SPELL_AURA_REMOVED", "HeartOfCinderRemoved", 460895)
self:Log("SPELL_AURA_APPLIED", "HeartOfAshApplied", 460898)
--self:Log("SPELL_AURA_REMOVED", "HeartOfAshRemoved", 460898)
end

function mod:OnEngage()
Expand All @@ -44,4 +49,16 @@ end
-- Event Handlers
--

function mod:HeartOfCinderApplied(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
if self:Me(args.destGUID) then
self:Say(args.spellId, nil, nil, "Heart of Cinder")
end
end

function mod:HeartOfAshApplied(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
if self:Me(args.destGUID) then
self:Say(args.spellId, nil, nil, "Heart of Ash")
end
end

0 comments on commit 9b11c28

Please sign in to comment.