Skip to content

Commit

Permalink
WarWithin/TheStonevault/Trash: Stonebreaker Strike
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 14, 2024
1 parent d4b716d commit aadafc0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions WarWithin/TheStonevault/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ BigWigs:AddColors("The Stonevault Trash", {
[426771] = "yellow",
[428703] = "orange",
[428879] = "purple",
[428894] = "purple",
[429109] = "red",
[429427] = "cyan",
[429545] = "yellow",
Expand Down
1 change: 1 addition & 0 deletions WarWithin/TheStonevault/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ BigWigs:AddSounds("The Stonevault Trash", {
[426771] = "alert",
[428703] = "alarm",
[428879] = "alarm",
[428894] = "alert",
[429109] = "warning",
[429427] = "info",
[429545] = "alert",
Expand Down
20 changes: 20 additions & 0 deletions WarWithin/TheStonevault/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function mod:GetOptions()
{449154, "HEALER", "NAMEPLATE"}, -- Molten Mortar
-- Cursedforge Honor Guard
{448640, "NAMEPLATE"}, -- Shield Stampede
{428894, "TANK", "NAMEPLATE", "OFF"}, -- Stonebreaker Strike
-- Cursedforge Stoneshaper
{429427, "NAMEPLATE"}, -- Earth Burst Totem
-- Rock Smasher
Expand Down Expand Up @@ -181,6 +182,8 @@ function mod:OnBossEnable()
-- Cursedforge Honor Guard
self:RegisterEngageMob("CursedforgeHonorGuardEngaged", 214264)
self:Log("SPELL_CAST_START", "ShieldStampede", 448640)
self:Log("SPELL_CAST_START", "StonebreakerStrike", 428894)
self:Log("SPELL_CAST_SUCCESS", "StonebreakerStrikeSuccess", 428894)
self:Death("CursedforgeHonorGuardDeath", 214264)

-- Cursedforge Stoneshaper
Expand Down Expand Up @@ -515,6 +518,7 @@ end

function mod:CursedforgeHonorGuardEngaged(guid)
self:Nameplate(448640, 6.8, guid) -- Shield Stampede
self:Nameplate(428894, 14.4, guid) -- Stonebreaker Strike
end

do
Expand All @@ -530,6 +534,22 @@ do
end
end

do
local prev = 0
function mod:StonebreakerStrike(args)
self:Nameplate(args.spellId, 0, args.sourceGUID)
if args.time - prev > 2 then
prev = args.time
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alert")
end
end
end

function mod:StonebreakerStrikeSuccess(args)
self:Nameplate(args.spellId, 15.2, args.sourceGUID)
end

function mod:CursedforgeHonorGuardDeath(args)
self:ClearNameplate(args.destGUID)
end
Expand Down

0 comments on commit aadafc0

Please sign in to comment.