From be8acbd4f26b870a54f39ac1a5af75b1ca1911e9 Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Sun, 1 Dec 2024 14:28:50 -0500 Subject: [PATCH] Shadowlands/MistsOfTirnaScithe/Tredova: Gorging Shield removal time --- Shadowlands/MistsOfTirnaScithe/Tredova.lua | 41 ++++++++++++---------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/Shadowlands/MistsOfTirnaScithe/Tredova.lua b/Shadowlands/MistsOfTirnaScithe/Tredova.lua index ecd2e20d2..6b99f0b9f 100644 --- a/Shadowlands/MistsOfTirnaScithe/Tredova.lua +++ b/Shadowlands/MistsOfTirnaScithe/Tredova.lua @@ -89,26 +89,31 @@ do end end -function mod:Consumption(args) - if self:Mythic() then - self:StopBar(322654) -- Acid Expulsion - self:StopBar(CL.adds) -- Accelerated Incubation - self:StopBar(322614) -- Mind Link - self:StopBar(463602) -- Coalescing Poison - end - if self:GetStage() == 1 then -- first Consumption - self:SetStage(2) - self:Message(args.spellId, "cyan", CL.percent:format(70, args.spellName)) - else -- second Consumption - self:SetStage(3) - self:Message(args.spellId, "cyan", CL.percent:format(40, args.spellName)) +do + local consumptionStart = 0 + + function mod:Consumption(args) + consumptionStart = args.time + if self:Mythic() then + self:StopBar(322654) -- Acid Expulsion + self:StopBar(CL.adds) -- Accelerated Incubation + self:StopBar(322614) -- Mind Link + self:StopBar(463602) -- Coalescing Poison + end + if self:GetStage() == 1 then -- first Consumption + self:SetStage(2) + self:Message(args.spellId, "cyan", CL.percent:format(70, args.spellName)) + else -- second Consumption + self:SetStage(3) + self:Message(args.spellId, "cyan", CL.percent:format(40, args.spellName)) + end + self:PlaySound(args.spellId, "long") end - self:PlaySound(args.spellId, "long") -end -function mod:GorgingShieldRemoved(args) - self:Message(args.spellId, "green", CL.removed:format(args.spellName)) - self:PlaySound(args.spellId, "info") + function mod:GorgingShieldRemoved(args) + self:Message(args.spellId, "green", CL.removed_after:format(args.spellName, args.time - consumptionStart)) + self:PlaySound(args.spellId, "info") + end end function mod:ConsumptionRemoved(args)