Skip to content

Commit

Permalink
Cataclysm/ThroneTides/Nazjar: Improve Shock Blast target detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 22, 2023
1 parent 91963bc commit 2d0d0d5
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Cataclysm/ThroneTides/Nazjar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,25 @@ function mod:HighTideOver(args)
end
end

function mod:ShockBlast(args)
self:TargetMessage(428054, "red", args.destName)
self:PlaySound(428054, "alarm", nil, args.destName)
if self:Me(args.destGUID) then
self:Say(428054)
do
local function printTarget(self, name, guid)
self:TargetMessage(428054, "red", name)
self:PlaySound(428054, "alarm", nil, name)
if self:Me(guid) then
self:Say(428054)
end
end

function mod:ShockBlast(args)
-- this debuff is sometimes applied to the tank instead of the targeted player,
-- so we have to revert back to target scanning to get the real target. if this
-- is ever fixed we can just check who gets the debuff instead.
self:GetBossTarget(printTarget, 0.1, args.sourceGUID)
local t = GetTime()
shockBlastCD = 21.8
nextShockBlast = t + shockBlastCD
self:CDBar(428054, shockBlastCD)
end
local t = GetTime()
shockBlastCD = 21.8
nextShockBlast = t + shockBlastCD
self:CDBar(428054, shockBlastCD)
end

function mod:Geysers(args)
Expand Down

0 comments on commit 2d0d0d5

Please sign in to comment.