Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoP/Scholomance/LilianVoss: Add boss module #1006

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions MoP/Scholomance/LilianVoss.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Lilian Voss", 1007, 666)
if not mod then return end
mod:RegisterEnableMob(
58722, -- Lilian Voss
58791 -- Lilian's Soul
)
mod:SetEncounterID(1429)
mod:SetRespawnTime(30)
mod:SetStage(1)

--------------------------------------------------------------------------------
-- Locales
--

local L = mod:GetLocale()
if L then
L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {
"stages",
111570, -- Death's Grasp
111775, -- Shadow Shiv
{115350, "ME_ONLY_EMPHASIZE"}, -- Fixate Anger
}, nil, {
[115350] = CL.fixate, -- Fixate Anger (Fixate)
}
end

function mod:OnBossEnable()
-- Stage One: Fetch Me Their Bones!
self:Log("SPELL_CAST_START", "DeathsGrasp", 111570)
self:Log("SPELL_CAST_START", "ShadowShiv", 111775)

-- Stage Two: Your Soul is Mine!
self:RegisterEvent("CHAT_MSG_MONSTER_SAY")
self:Log("SPELL_CAST_SUCCESS", "UnleashAnger", 111649)
self:Log("SPELL_AURA_APPLIED", "FixateAnger", 115350)

-- Stage Three: A Perfectly Good Corpse
self:Log("SPELL_CAST_START", "ReanimateCorpse", 114262)
end

function mod:OnEngage()
self:SetStage(1)
self:CDBar(111775, 12.1) -- Shadow Shiv
self:CDBar(111570, 30.4) -- Death's Grasp
end

--------------------------------------------------------------------------------
-- Event Handlers
--

-- Stage One: Fetch Me Their Bones!

function mod:DeathsGrasp(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "long")
self:CDBar(args.spellId, 34.0)
end

function mod:ShadowShiv(args)
self:Message(args.spellId, "red")
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 13.4)
end

-- Stage Two: Your Soul is Mine!

function mod:CHAT_MSG_MONSTER_SAY(_, msg)
if msg == L.stage_2_trigger then
-- can clean up bars a little bit early
self:StopBar(111570) -- Death's Grasp
self:StopBar(111775) -- Shadow Shiv
end
end

function mod:UnleashAnger(args)
self:StopBar(111570) -- Death's Grasp
self:StopBar(111775) -- Shadow Shiv
self:SetStage(2)
self:Message("stages", "cyan", CL.percent:format(60, CL.stage:format(2)), args.spellId)
self:PlaySound("stages", "long")
end

function mod:FixateAnger(args)
self:TargetMessage(args.spellId, "yellow", args.destName, CL.fixate)
if self:Me(args.destGUID) then
self:PlaySound(args.spellId, "warning", nil, args.destName)
else
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
self:CDBar(args.spellId, 12.1, CL.fixate)
end

-- Stage Three: A Perfectly Good Corpse

function mod:ReanimateCorpse(args)
self:SetStage(3)
self:Message("stages", "cyan", CL.stage:format(3), args.spellId)
self:PlaySound("stages", "long")
self:CDBar(111570, 6.1) -- Death's Grasp
self:CDBar(111775, 18.2) -- Shadow Shiv
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/deDE.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "deDE")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/esES.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "esES")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/esMX.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "esMX")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/frFR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "frFR")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/itIT.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "itIT")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/koKR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "koKR")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
15 changes: 15 additions & 0 deletions MoP/Scholomance/Locales/locales.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

<Script file="deDE.lua"/>
<Script file="esES.lua"/>
<Script file="esMX.lua"/>
<Script file="frFR.lua"/>
<Script file="itIT.lua"/>
<Script file="koKR.lua"/>
<Script file="ptBR.lua"/>
<Script file="ruRU.lua"/>
<Script file="zhCN.lua"/>
<Script file="zhTW.lua"/>

</Ui>
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/ptBR.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "ptBR")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/ruRU.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "ruRU")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "zhCN")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
5 changes: 5 additions & 0 deletions MoP/Scholomance/Locales/zhTW.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local L = BigWigs:NewBossLocale("Lilian Voss", "zhTW")
if not L then return end
if L then
--L.stage_2_trigger = "Now, Lilian, it is time for your transformation."
end
7 changes: 7 additions & 0 deletions MoP/Scholomance/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ BigWigs:AddColors("Rattlegore", {
[113996] = {"green","red"},
[113999] = "yellow",
})

BigWigs:AddColors("Lilian Voss", {
[111570] = "orange",
[111775] = "red",
[115350] = {"blue","yellow"},
["stages"] = "cyan",
})
7 changes: 7 additions & 0 deletions MoP/Scholomance/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ BigWigs:AddSounds("Rattlegore", {
[113996] = {"alarm","info"},
[113999] = "alert",
})

BigWigs:AddSounds("Lilian Voss", {
[111570] = "long",
[111775] = "alert",
[115350] = {"alert","warning"},
["stages"] = "long",
})
2 changes: 2 additions & 0 deletions MoP/Scholomance/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<Script file="InstructorChillheart.lua"/>
<Script file="JandiceBarov.lua"/>
<Script file="Rattlegore.lua"/>
<Script file="LilianVoss.lua"/>

<Include file="Locales\locales.xml"/>
<Include file="Options\options.xml"/>

</Ui>