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

Cataclysm/HourOfTwilight/Asira: Add boss module #1011

Merged
merged 4 commits into from
May 27, 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
68 changes: 58 additions & 10 deletions Cataclysm/HourOfTwilight/Asira.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,68 @@
-------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod = BigWigs:NewBoss("Asira Dawnslayer", 940)
local mod, CL = BigWigs:NewBoss("Asira Dawnslayer", 940, 342)
if not mod then return end
mod.partyContent = true
mod:RegisterEnableMob(54968)
mod.toggleOptions = {
"bosskill",
}
mod:RegisterEnableMob(54968) -- Asira Dawnslayer
mod:SetEncounterID(1340)
mod:SetRespawnTime(30)

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

function mod:GetOptions()
return {
{102726, "ME_ONLY_EMPHASIZE"}, -- Mark of Silence
103558, -- Choking Smoke Bomb
103419, -- Blade Barrier
}, nil, {
[102726] = CL.mark, -- Mark of Silence (Mark)
}
end

function mod:OnBossEnable()
self:Death("Win", 54986)
self:Log("SPELL_CAST_SUCCESS", "MarkOfSilence", 102726)
self:Log("SPELL_AURA_APPLIED", "MarkOfSilenceApplied", 102726)
self:Log("SPELL_CAST_SUCCESS", "ChokingSmokeBomb", 103558)
self:Log("SPELL_CAST_SUCCESS", "BladeBarrier", 103419)
end

function mod:OnEngage()
-- Mark of Silence is cast on pull, the timer will be started in MarkOfSilence
self:CDBar(103558, 10.9) -- Choking Smoke Bomb
end

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

do
local playerList = {}

function mod:MarkOfSilence(args)
playerList = {}
self:CDBar(args.spellId, 8.5, CL.mark)
end

function mod:MarkOfSilenceApplied(args)
playerList[#playerList + 1] = args.destName
if self:Me(args.destGUID) then
-- only play a sound if on you
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end
self:TargetsMessage(args.spellId, "yellow", playerList, 2, CL.mark)
end
end

function mod:ChokingSmokeBomb(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 23.0)
end

function mod:BladeBarrier(args)
self:Message(args.spellId, "red", CL.percent:format(30, args.spellName))
self:PlaySound(args.spellId, "long")
end
3 changes: 3 additions & 0 deletions Cataclysm/HourOfTwilight/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ BigWigs:AddColors("Arcurion", {
})

BigWigs:AddColors("Asira Dawnslayer", {
[102726] = {"blue","yellow"},
[103419] = "red",
[103558] = "orange",
})

BigWigs:AddColors("Benedictus", {
Expand Down
3 changes: 3 additions & 0 deletions Cataclysm/HourOfTwilight/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ BigWigs:AddSounds("Arcurion", {
})

BigWigs:AddSounds("Asira Dawnslayer", {
[102726] = "alarm",
[103419] = "long",
[103558] = "alert",
})

BigWigs:AddSounds("Benedictus", {
Expand Down