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

WarWithin/TheStonevault/HighSpeakerEirich: Add boss module #1049

Merged
merged 1 commit into from
Jun 9, 2024
Merged
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
37 changes: 34 additions & 3 deletions WarWithin/TheStonevault/HighSpeakerEirich.lua
Original file line number Diff line number Diff line change
@@ -15,19 +15,50 @@ mod:SetRespawnTime(30)

function mod:GetOptions()
return {

427461, -- Void Corruption
427852, -- Entropic Reckoning
427869, -- Unbridled Void
}
end

function mod:OnBossEnable()

self:Log("SPELL_CAST_START", "VoidCorruption", 427461)
self:Log("SPELL_AURA_REMOVED", "VoidCorruptionRemoved", 427329)
self:Log("SPELL_CAST_START", "EntropicReckoning", 427852)
self:Log("SPELL_CAST_START", "UnbridledVoid", 427869)
end

function mod:OnEngage()

self:CDBar(427869, 7.6) -- Unbridled Void
self:CDBar(427461, 16.1) -- Void Corruption
self:CDBar(427852, 22.2) -- Entropic Reckoning
end

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

function mod:VoidCorruption(args)
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "info")
self:CDBar(args.spellId, 27.9)
end

function mod:VoidCorruptionRemoved(args)
if self:Me(args.destGUID) then
self:Message(427461, "green", CL.removed:format(args.spellName))
self:PlaySound(427461, "info", nil, args.destName)
end
end

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

function mod:UnbridledVoid(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
self:CDBar(args.spellId, 20.6)
end
3 changes: 3 additions & 0 deletions WarWithin/TheStonevault/Options/Colors.lua
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ BigWigs:AddColors("Forge Speakers", {
})

BigWigs:AddColors("High Speaker Eirich", {
[427461] = {"green","yellow"},
[427852] = "red",
[427869] = "orange",
})

BigWigs:AddColors("The Stonevault Trash", {
3 changes: 3 additions & 0 deletions WarWithin/TheStonevault/Options/Sounds.lua
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ BigWigs:AddSounds("Forge Speakers", {
})

BigWigs:AddSounds("High Speaker Eirich", {
[427461] = "info",
[427852] = "alert",
[427869] = "alarm",
})

BigWigs:AddSounds("The Stonevault Trash", {