Skip to content

Commit

Permalink
Delves/TheSpiralWeave/ThePuppetmaster: Grimweave Orb damage alert
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Sep 22, 2024
1 parent 72914e6 commit 032c9f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Delves/TheSpiralWeave/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ BigWigs:AddColors("The Puppetmaster", {
[450509] = "purple",
[450546] = {"blue","green","red"},
[450714] = "orange",
[451913] = "orange",
[451913] = {"blue","orange"},
})
2 changes: 1 addition & 1 deletion Delves/TheSpiralWeave/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ BigWigs:AddSounds("The Puppetmaster", {
[450509] = "alarm",
[450546] = "alert",
[450714] = "alarm",
[451913] = "alarm",
[451913] = {"alarm","underyou"},
})
16 changes: 16 additions & 0 deletions Delves/TheSpiralWeave/ThePuppetmaster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ end
function mod:OnBossEnable()
-- The Puppetmaster? (First Stage)
self:Log("SPELL_CAST_START", "GrimweaveOrb", 451913)
self:Log("SPELL_AURA_APPLIED", "GrimweaveOrbDamage", 452041)
self:Log("SPELL_AURA_REFRESH", "GrimweaveOrbDamage", 452041)
self:Death("Stage1Death", 220507)

-- The Puppetmaster? (Second Stage)
Expand Down Expand Up @@ -106,6 +108,20 @@ do
end
end

do
local prev = 0
function mod:GrimweaveOrbDamage(args)
-- this spellId can also be cast by trash
if self:MobId(args.sourceGUID) == 220507 then -- The Puppetmaster?
if self:Me(args.destGUID) and args.time - prev > 1.5 then
prev = args.time
self:PersonalMessage(451913, "near")
self:PlaySound(451913, "underyou")
end
end
end
end

function mod:Stage1Death()
if timer then
self:CancelTimer(timer)
Expand Down

0 comments on commit 032c9f1

Please sign in to comment.