Skip to content

Commit

Permalink
Classic/DireMaul/IllyannaRavenoak: Add boss module (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent bab5aaa commit 9547497
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 7 deletions.
89 changes: 82 additions & 7 deletions Classic/DireMaul/IllyannaRavenoak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,110 @@

local mod, CL = BigWigs:NewBoss("Illyanna Ravenoak", 429, 407)
if not mod then return end
mod:RegisterEnableMob(11488) -- Illyanna Ravenoak
mod:RegisterEnableMob(
11488, -- Illyanna Ravenoak
14308 -- Ferra
)
mod:SetEncounterID(347)
--mod:SetRespawnTime(0)
--mod:SetRespawnTime(0) resets, doesn't respawn

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

function mod:GetOptions()
return {

-- Ferra
22911, -- Charge
-- Illyanna Ravenoak
30933, -- Volley
22910, -- Immolation Trap
22914, -- Concussive Shot
}, {
[22911] = -4906, -- Ferra
[30933] = self.displayName,
}
end

function mod:OnBossEnable()
if self:Retail() then
self:RegisterEvent("ENCOUNTER_START") -- XXX no boss frames
self:Log("SPELL_CAST_SUCCESS", "Charge", 451118)
self:Log("SPELL_CAST_SUCCESS", "ImmolationTrap", 451121)
self:Log("SPELL_CAST_SUCCESS", "Volley", 30933)
else -- Classic
self:Log("SPELL_CAST_SUCCESS", "ChargeClassic", 22911)
self:Log("SPELL_CAST_SUCCESS", "ImmolationTrap", 22910)
end
self:Log("SPELL_CAST_SUCCESS", "ConcussiveShot", 22914)
if self:Heroic() then -- no encounter events in Timewalking
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 11488)
end
end

function mod:OnEngage()
-- Charge and Volley are not cast if no one is at range
self:CDBar(22910, 7.2) -- Immolation Trap
self:CDBar(22914, 14.5) -- Concussive Shot
end

--------------------------------------------------------------------------------
-- Classic Initialization
--

if mod:Classic() then
function mod:GetOptions()
return {
-- Ferra
22911, -- Charge
-- Illyanna Ravenoak
22910, -- Immolation Trap
22914, -- Concussive Shot
}, {
[22911] = -4906, -- Ferra
[22910] = self.displayName,
}
end
end

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

function mod:ENCOUNTER_START(_, id) -- XXX no boss frames
if id == self.engageId then
self:Engage()
-- Ferra

function mod:Charge(args)
self:Message(22911, "red") -- no target on Retail
-- only cast if someone is at range
--self:CDBar(args.spellId, 7.3)
self:PlaySound(22911, "alarm")
end

function mod:ChargeClassic(args)
self:TargetMessage(22911, "red", args.destName)
-- only cast if someone is at range, no CD on Classic
if self:Me(args.destGUID) then
self:PlaySound(22911, "alarm", nil, args.destName)
end
end

-- Illyanna Ravenoak

function mod:Volley(args)
self:Message(args.spellId, "red")
-- only cast if someone is at range
--self:CDBar(args.spellId, 15.8)
self:PlaySound(args.spellId, "alarm")
end

function mod:ImmolationTrap()
self:Message(22910, "orange")
self:CDBar(22910, 15.8)
self:PlaySound(22910, "info")
end

function mod:ConcussiveShot(args)
self:Message(args.spellId, "yellow")
self:CDBar(args.spellId, 15.8)
self:PlaySound(args.spellId, "alert")
end
4 changes: 4 additions & 0 deletions Classic/DireMaul/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ BigWigs:AddColors("Tendris Warpwood", {
})

BigWigs:AddColors("Illyanna Ravenoak", {
[22910] = "orange",
[22911] = {"blue","red"},
[22914] = "yellow",
[30933] = "red",
})

BigWigs:AddColors("Magister Kalendris", {
Expand Down
4 changes: 4 additions & 0 deletions Classic/DireMaul/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ BigWigs:AddSounds("Tendris Warpwood", {
})

BigWigs:AddSounds("Illyanna Ravenoak", {
[22910] = "info",
[22911] = "alarm",
[22914] = "alert",
[30933] = "alarm",
})

BigWigs:AddSounds("Magister Kalendris", {
Expand Down

0 comments on commit 9547497

Please sign in to comment.