Skip to content

Commit

Permalink
BfA/AtalDazar/Yazma: Wracking Pain target
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 21, 2023
1 parent 3099c03 commit 8a0c619
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BfA/AtalDazar/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BigWigs:AddColors("Yazma", {
[249919] = "purple",
[250036] = "blue",
[250050] = "cyan",
[250096] = "orange",
[250096] = {"blue","orange"},
[259187] = "red",
})

Expand Down
24 changes: 19 additions & 5 deletions BfA/AtalDazar/Yazma.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function mod:GetOptions()
259187, -- Soulrend
250050, -- Echoes of Shadra
250036, -- Shadowy Remains
250096, -- Wracking Pain
{250096, "ME_ONLY_EMPHASIZE"}, -- Wracking Pain
{249919, "TANK_HEALER"}, -- Skewer
}
end
Expand Down Expand Up @@ -68,10 +68,24 @@ do
end
end

function mod:WrackingPain(args)
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 17.0) -- 17-24
do
local function printTarget(self, name, guid)
if self:Me(guid) or self:Healer() then
self:TargetMessage(250096, "orange", name)
self:PlaySound(250096, "alert", nil, name)
end
end

function mod:WrackingPain(args)
if self:MythicPlus() then
-- not interruptible in Mythic+, get target instead
self:GetBossTarget(printTarget, 0.3, args.sourceGUID)
else -- Normal, Heroic, Mythic
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
end
self:CDBar(args.spellId, 17.0) -- 17-24
end
end

function mod:Skewer(args)
Expand Down

0 comments on commit 8a0c619

Please sign in to comment.