Skip to content

Commit

Permalink
DarkheartThicket/ShadeOfXavius: Fix Growing Paranoia, add say & icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 4, 2016
1 parent bb4fbec commit 65679bc
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions Legion/DarkheartThicket/ShadeOfXavius.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 65679bc

Please sign in to comment.