Skip to content

Commit

Permalink
ICC-PP: fix Guzzle Potion phasing timer on 10H
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Jun 11, 2024
1 parent 8241b8a commit bece7cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DBM-Icecrown/ThePlagueworks/Putricide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ local L = mod:GetLocalizedStrings()

local select = select

mod:SetRevision("20240605114258")
mod:SetRevision("20240611114025")
mod:SetCreatureID(36678)
mod:SetUsedIcons(1, 2, 3, 4)
mod:SetHotfixNoticeRev(20240529000000)
mod:SetHotfixNoticeRev(20240611000000)
mod:SetMinSyncRevision(20220908000000)

mod:RegisterCombat("combat")
Expand Down Expand Up @@ -265,7 +265,7 @@ function mod:SPELL_CAST_START(args)
specWarnGaseousBloatCast:Play("targetchange")
end
elseif args:IsSpellID(73121, 73122, 73120, 71893) then --Guzzle Potions (phase3 change)
local castTime = self:IsHeroic() and 20 or 4 -- Normal and Heroic have different cast times, so hardcode the cast time in seconds. DO NOT USE GetSpellInfo API here, as it is affected by player Haste.
local castTime = self:IsDifficulty("heroic25") and 20 or self:IsDifficulty("heroic10") and 30 or 4 -- Normal, Heroic10 and Heroic25 have different cast times, so hardcode the cast time in seconds. DO NOT USE GetSpellInfo API here, as it is affected by player Haste.
timerUnstableExperimentCD:Cancel()
timerNextPhase:Start(castTime) -- Script phasing happens right after UNIT_SPELLCAST_SUCCEEDED. Boss re-engage is timed to account for the remaining time (check YELL)
self:Schedule(castTime, NextPhase, self) -- prefer scheduling over UNIT_SPELLCAST_SUCCEEDED because on Normal difficulty Guzzle Potions does not fire UNIT_SPELLCAST_SUCCEEDED, only _STOP. This has the benefit of also being cross-server
Expand Down

0 comments on commit bece7cb

Please sign in to comment.