From 65679bc5e1d1d49da7c8eda2c510f54145167798 Mon Sep 17 00:00:00 2001 From: funkydude Date: Mon, 5 Sep 2016 00:36:17 +0100 Subject: [PATCH] DarkheartThicket/ShadeOfXavius: Fix Growing Paranoia, add say & icon. --- Legion/DarkheartThicket/ShadeOfXavius.lua | 38 +++++++++++++++++------ 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/Legion/DarkheartThicket/ShadeOfXavius.lua b/Legion/DarkheartThicket/ShadeOfXavius.lua index 9ee3a5877..253667ff9 100644 --- a/Legion/DarkheartThicket/ShadeOfXavius.lua +++ b/Legion/DarkheartThicket/ShadeOfXavius.lua @@ -14,36 +14,56 @@ mod.engageId = 1839 function mod:GetOptions() return { - 200359, -- Induced Paranoia - 212834, -- Nightmare Bolt + {200289, "ICON", "SAY"}, -- Growing Paranoia + {212834, "ICON", "SAY"}, -- Nightmare Bolt } end function mod:OnBossEnable() - self:Log("SPELL_CAST_SUCCESS", "InducedParanoia", 200359) + self:Log("SPELL_CAST_SUCCESS", "GrowingParanoia", 200289) + self:Log("SPELL_AURA_APPLIED", "GrowingParanoiaApplied", 200289) + self:Log("SPELL_AURA_REMOVED", "GrowingParanoiaRemoved", 200289) self:Log("SPELL_CAST_START", "NightmareBolt", 212834) end function mod:OnEngage() - self:CDBar(200359, 23) -- Induced Paranoia + self:CDBar(200289, 28) -- Growing Paranoia + self:CDBar(212834, 8) -- Nightmare Bolt end -------------------------------------------------------------------------------- -- Event Handlers -- -function mod:InducedParanoia(args) - self:Message(args.spellId, "Personal") - self:CDBar(args.spellId, 28) -- 28-30 +function mod:GrowingParanoia(args) + self:TargetMessage(args.spellId, args.destName, "Attention", "Alarm") + self:CDBar(args.spellId, 20) -- pull:28.4, 20.6, 21.9 +end + +function mod:GrowingParanoiaApplied(args) + self:PrimaryIcon(args.spellId, args.destName) + if self:Me(args.destGUID) then + self:Say(args.spellId) + end +end + +function mod:GrowingParanoiaRemoved(args) + self:PrimaryIcon(args.spellId) end do - local function printTarget(self, player) + local function printTarget(self, player, guid) self:TargetMessage(212834, player, "Urgent", "Alert", nil, nil, true) + + if self:Normal() then return end + if self:Me(guid) then + self:Say(args.spellId) + end + -- XXX icon? end function mod:NightmareBolt(args) self:GetBossTarget(printTarget, 0.4, args.sourceGUID) - self:CDBar(args.spellId, 17) -- 17-22 + self:CDBar(args.spellId, 23) -- pull:8.9, 23.0, 23.1 end end