From 8977f2ab1f9888c9c91acce36c4031a9eb013105 Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Wed, 22 Nov 2023 01:23:17 -0500 Subject: [PATCH] Dragonflight/DawnOfTheInfinite/Trash: Improve Binding Grasp target detection --- Dragonflight/DawnOfTheInfinite/Trash.lua | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Dragonflight/DawnOfTheInfinite/Trash.lua b/Dragonflight/DawnOfTheInfinite/Trash.lua index 443e5f45c..9449e9887 100644 --- a/Dragonflight/DawnOfTheInfinite/Trash.lua +++ b/Dragonflight/DawnOfTheInfinite/Trash.lua @@ -235,7 +235,7 @@ function mod:OnBossEnable() -- Spurlok, Timesworn Sentinel self:Log("SPELL_CAST_START", "ShroudingSandstorm", 412215) - self:Log("SPELL_CAST_START", "BindingGrasp", 412922) + self:Log("SPELL_AURA_APPLIED", "BindingGraspApplied", 412922) -- Lerai, Timesworn Maiden self:Log("SPELL_CAST_START", "OrbOfContemplation", 412129) @@ -474,16 +474,11 @@ function mod:ShroudingSandstorm(args) --self:NameplateCDBar(args.spellId, 19.4, args.sourceGUID) end -do - local function printTarget(self, name, guid) - self:TargetMessage(412922, "yellow", name) - self:PlaySound(412922, "info", nil, name) - end - - function mod:BindingGrasp(args) - self:GetUnitTarget(printTarget, 0.4, args.sourceGUID) - --self:NameplateCDBar(args.spellId, 19.4, args.sourceGUID) - end +function mod:BindingGraspApplied(args) + self:TargetMessage(args.spellId, "yellow", args.destName) + self:PlaySound(args.spellId, "info", nil, args.destName) + -- if this is uncommented, move to SUCCESS + --self:NameplateCDBar(args.spellId, 19.4, args.sourceGUID) end -- Spurlok, Timesworn Sentinel