Skip to content

Commit 3fa112d

Browse files
committed
Legion/SeatOfTheTriumvirate/ViceroyNezhar: Timer update
1 parent 484f4d5 commit 3fa112d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Legion/SeatOfTheTriumvirate/ViceroyNezhar.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ local gatesOfTheAbyssCount = 1
9090
local massVoidInfusionCount = 1
9191
local umbralTentaclesCount = 1
9292
local repulseCount = 1
93+
local count6 = 1
9394
local count12 = 1
9495
local activeBars = {}
9596

@@ -121,6 +122,7 @@ if mod:Retail() then -- Midnight+
121122
massVoidInfusionCount = 1
122123
umbralTentaclesCount = 1
123124
repulseCount = 1
125+
count6 = 1
124126
count12 = 1
125127
activeBars = {}
126128
if self:ShouldShowBars() then
@@ -139,9 +141,9 @@ function mod:ENCOUNTER_TIMELINE_EVENT_ADDED(_, eventInfo)
139141
if eventInfo.source ~= 0 then return end -- Enum.EncounterTimelineEventSource.Encounter
140142
local duration = math.floor(eventInfo.duration + 0.5)
141143
local barInfo
142-
if duration == 2 or duration == 4 or duration == 6 or (duration == 12 and count12 % 2 == 0) or duration == 14 then -- Mind Blast
144+
if duration == 2 or duration == 4 or (duration == 6 and count6 % 3 ~= 1) or (duration == 12 and count12 % 2 == 0) or duration == 14 then -- Mind Blast
143145
barInfo = self:MindBlastTimeline(eventInfo)
144-
elseif duration == 6 or duration == 18 then -- Gates of the Abyss
146+
elseif (duration == 6 and count6 % 3 == 1) or duration == 18 then -- Gates of the Abyss
145147
barInfo = self:GatesOfTheAbyssTimeline(eventInfo)
146148
elseif duration == 12 and count12 % 2 == 1 then -- Mass Void Infusion
147149
barInfo = self:MassVoidInfusionTimeline(eventInfo)
@@ -152,6 +154,9 @@ function mod:ENCOUNTER_TIMELINE_EVENT_ADDED(_, eventInfo)
152154
elseif not self:IsWiping() then
153155
self:ErrorForTimelineEvent(eventInfo)
154156
end
157+
if duration == 6 then
158+
count6 = count6 + 1
159+
end
155160
if duration == 12 then
156161
count12 = count12 + 1
157162
end

0 commit comments

Comments
 (0)