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/InstructorChillheart: Add boss module #1003

Merged
merged 4 commits into from
May 23, 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
2 changes: 1 addition & 1 deletion LittleWigs.toc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## X-LittleWigs-Repo: 1
## X-BigWigs-ExtraMenu: 1716
## X-BigWigs-NoMenu: 1616, 1673, 1684, 1698, 1702, 1703, 1710
## X-BigWigs-LoadOn-InstanceId: 33,36, 269,540,542,543,545,546,547,552,553,554,555,556,557,558,560,585, 536,574,575,576,578,595,599,600,601,602,604,608,619,632,650,658,668, 568,643,644,645,657,670,725,755,859,938,939,940, 959,960,961,962,994,1001,1004,1011,1112, 1175,1176,1182,1195,1208,1209,1279,1358, 1456,1466,1477,1458,1492,1493,1501,1516,1544,1571,1616,1651,1673,1677,1684,1698,1702,1703,1710,1753, 1594,1754,1762,1763,1771,1822,1841,1862,1864,1877,2097,2212,2213, 2284,2285,2286,2287,2289,2290,2291,2293,2441, 2520,2527,2519,2521,2526,2515,2516,2451,2579, 2648,2649,2651,2652,2660,2661,2662,2669
## X-BigWigs-LoadOn-InstanceId: 33,36, 269,540,542,543,545,546,547,552,553,554,555,556,557,558,560,585, 536,574,575,576,578,595,599,600,601,602,604,608,619,632,650,658,668, 568,643,644,645,657,670,725,755,859,938,939,940, 959,960,961,962,994,1001,1004,1007,1011,1112, 1175,1176,1182,1195,1208,1209,1279,1358, 1456,1466,1477,1458,1492,1493,1501,1516,1544,1571,1616,1651,1673,1677,1684,1698,1702,1703,1710,1753, 1594,1754,1762,1763,1771,1822,1841,1862,1864,1877,2097,2212,2213, 2284,2285,2286,2287,2289,2290,2291,2293,2441, 2520,2527,2519,2521,2526,2515,2516,2451,2579, 2648,2649,2651,2652,2660,2661,2662,2669
#@end-do-not-package@
## Dependencies: BigWigs
## LoadOnDemand: 1
Expand Down
2 changes: 1 addition & 1 deletion MoP/LittleWigs_MistsOfPandaria_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
## Dependencies: BigWigs

## X-Category: Party
## X-BigWigs-LoadOn-InstanceId: 959, 960, 961, 962, 994, 1001, 1004, 1011, 1112
## X-BigWigs-LoadOn-InstanceId: 959, 960, 961, 962, 994, 1001, 1004, 1007, 1011, 1112

modules.xml
96 changes: 96 additions & 0 deletions MoP/Scholomance/InstructorChillheart.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Instructor Chillheart", 1007, 659)
if not mod then return end
mod:RegisterEnableMob(58633) -- Instructor Chillheart
mod:SetEncounterID(1426)
mod:SetRespawnTime(30)
mod:SetStage(1)

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

local L = mod:GetLocale()
if L then
L["111209_desc"] = -5515 -- Frigid Grasp
L["111441_icon"] = "inv_misc_urn_01"
L["111441_desc"] = -5516 -- Stage Two: Second Lesson
end

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

function mod:GetOptions()
return {
-- Stage One: First Lesson
111854, -- Ice Wave
111631, -- Wrack Soul
{111610, "SAY", "ME_ONLY_EMPHASIZE"}, -- Ice Wrath
111209, -- Frigid Grasp
-- Stage Two: Second Lesson
111441, -- Fill Phylactery
}, {
[111854] = -5524, -- Stage One: First Lesson
[111441] = -5516, -- Stage Two: Second Lesson
}
end

function mod:OnBossEnable()
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1") -- Fill Phylactery, Frigid Grasp
self:Log("SPELL_CAST_START", "IceWave", 111854)
self:Log("SPELL_AURA_APPLIED", "WrackSoulApplied", 111631)
self:Log("SPELL_CAST_SUCCESS", "IceWrath", 111610)
self:Log("SPELL_AURA_APPLIED", "IceWrathApplied", 111610)
end

function mod:OnEngage()
self:SetStage(1)
self:CDBar(111209, 10.6) -- Frigid Grasp
self:CDBar(111610, 19.5) -- Ice Wrath
end

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

function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, spellId)
if spellId == 111209 then -- Frigid Grasp
self:Message(spellId, "orange")
self:PlaySound(spellId, "alarm")
self:CDBar(spellId, 10.9)
elseif spellId == 111441 then -- Fill Phylactery
self:StopBar(111610) -- Ice Wrath
self:StopBar(111209) -- Frigid Grasp
self:SetStage(2)
self:Message(spellId, "cyan", nil, L["111441_icon"])
self:PlaySound(spellId, "long")
end
end

function mod:IceWave(args)
self:Message(args.spellId, "cyan")
self:PlaySound(args.spellId, "info")
end

function mod:WrackSoulApplied(args)
if self:Me(args.destGUID) or self:Healer() then
self:TargetMessage(args.spellId, "red", args.destName)
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
end

function mod:IceWrath(args)
self:CDBar(args.spellId, 17.0)
end

function mod:IceWrathApplied(args)
self:TargetMessage(args.spellId, "yellow", args.destName)
self:PlaySound(args.spellId, "alert", nil, args.destName)
if self:Me(args.destGUID) then
self:Say(args.spellId, nil, nil, "Ice Wrath")
end
end
9 changes: 9 additions & 0 deletions MoP/Scholomance/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

BigWigs:AddColors("Instructor Chillheart", {
[111209] = "orange",
[111441] = "cyan",
[111610] = {"blue","yellow"},
[111631] = {"blue","red"},
[111854] = "cyan",
})

9 changes: 9 additions & 0 deletions MoP/Scholomance/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

BigWigs:AddSounds("Instructor Chillheart", {
[111209] = "alarm",
[111441] = "long",
[111610] = "alert",
[111631] = "alert",
[111854] = "info",
})

7 changes: 7 additions & 0 deletions MoP/Scholomance/Options/options.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<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="Colors.lua"/>
<Script file="Sounds.lua"/>

</Ui>
8 changes: 8 additions & 0 deletions MoP/Scholomance/modules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<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="InstructorChillheart.lua"/>

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

</Ui>
11 changes: 6 additions & 5 deletions MoP/modules.xml
Original file line number Diff line number Diff line change
@@ -1,14 +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">

<Include file="ShadoPanMonastery\modules.xml"/>
<Include file="SiegeOfNiuzaoTemple\modules.xml"/>
<Include file="BlackTempleSolo\modules.xml"/>
<Include file="GateOfTheSettingSun\modules.xml"/>
<Include file="StormstoutBrewery\modules.xml"/>
<Include file="MogushanPalace\modules.xml"/>
<Include file="ScarletHalls\modules.xml"/>
<Include file="ScarletMonastery\modules.xml"/>
<Include file="MogushanPalace\modules.xml"/>
<Include file="Scholomance\modules.xml"/>
<Include file="ShadoPanMonastery\modules.xml"/>
<Include file="SiegeOfNiuzaoTemple\modules.xml"/>
<Include file="StormstoutBrewery\modules.xml"/>
<Include file="TempleOfTheJadeSerpent\modules.xml"/>
<Include file="BlackTempleSolo\modules.xml"/>

</Ui>