Skip to content

Commit

Permalink
ICC-PP: fix bad math on Update timer method
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Aug 23, 2023
1 parent b16339e commit 56c5886
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DBM-Icecrown/ThePlagueworks/Putricide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ local L = mod:GetLocalizedStrings()
local GetTime = GetTime
local format = string.format

mod:SetRevision("20230822225948")
mod:SetRevision("20230823103810")
mod:SetCreatureID(36678)
mod:SetUsedIcons(1, 2, 3, 4)
mod:SetHotfixNoticeRev(20230816000000)
mod:SetHotfixNoticeRev(20230823000000)
mod:SetMinSyncRevision(20220908000000)

mod:RegisterCombat("combat")
Expand Down Expand Up @@ -189,8 +189,8 @@ function mod:SPELL_CAST_START(args)
self:SetStage(self.vb.phase + 0.5) -- ACTION_CHANGE_PHASE
warnTearGas:Show()
if self.vb.phase == 2.5 then -- Usual timer delta is not reliable for Malleable Goo, it's a different logic, commented below
local gooElapsed = timerMalleableGooCD:GetTime() -- On second intermission, the next Malleable Goo will always be 50s after the previous Malleable Goo cast, so calculate elapsed time and run Update with 50-elapsed
timerMalleableGooCD:Update(50-gooElapsed, 50)
local gooElapsed = timerMalleableGooCD:GetTime() -- On second intermission, the next Malleable Goo will always be 50s after the previous Malleable Goo cast, so calculate elapsed time and update timer
timerMalleableGooCD:Update(gooElapsed, 50)
soundMalleableGooSoon:Schedule(50-gooElapsed-3, "Interface\\AddOns\\DBM-Core\\sounds\\RaidAbilities\\malleable_soon.mp3")
end
elseif args:IsSpellID(72842, 72843) then --Volatile Experiment (Heroic intermission)
Expand All @@ -204,8 +204,8 @@ function mod:SPELL_CAST_START(args)
timerChokingGasBombCD:Cancel()
timerUnboundPlagueCD:Cancel()
if self.vb.phase == 2.5 then -- Usual timer delta is not reliable for Malleable Goo, it's a different logic, commented below (25H Icecrown [2023-05-28]@[17:19:33] || [2023-05-28]@[16:42:29] || [2023-05-28]@[16:59:21] || [2023-05-28]@[16:32:41]) - First intermission: 52.45 || 49.14 || 49.97 || 48.50 ; Second intermission: 30.41 || x || 38.82 || x.
local gooElapsed = timerMalleableGooCD:GetTime() -- On second intermission, the next Malleable Goo will always be 50s after the previous Malleable Goo cast, so calculate elapsed time and run Update with 50-elapsed
timerMalleableGooCD:Update(50-gooElapsed, 50)
local gooElapsed = timerMalleableGooCD:GetTime() -- On second intermission, the next Malleable Goo will always be 50s after the previous Malleable Goo cast, so calculate elapsed time and update timer
timerMalleableGooCD:Update(gooElapsed, 50)
soundMalleableGooSoon:Schedule(50-gooElapsed-3, "Interface\\AddOns\\DBM-Core\\sounds\\RaidAbilities\\malleable_soon.mp3")
end
elseif args:IsSpellID(72851, 72852, 71621, 72850) then --Create Concoction (phase2 change)
Expand Down

0 comments on commit 56c5886

Please sign in to comment.