From f0204449c0746e5219c4b5943c2ca75f707eadad Mon Sep 17 00:00:00 2001 From: Lord Blackadder Date: Mon, 29 Jul 2024 00:18:49 +0200 Subject: [PATCH 1/2] add permafrost to conclave of winds --- Throne/Conclave.lua | 8 ++++++++ Throne/Options/Colors.lua | 1 + 2 files changed, 9 insertions(+) diff --git a/Throne/Conclave.lua b/Throne/Conclave.lua index f186e5d..702018f 100644 --- a/Throne/Conclave.lua +++ b/Throne/Conclave.lua @@ -42,6 +42,7 @@ function mod:GetOptions() 93059, -- Storm Shield -- Nezir 84645, -- Wind Chill + 86082, -- Permafrost -- Anshal 85422, -- Nurture 86281, -- Toxic Spores @@ -66,6 +67,7 @@ function mod:OnBossEnable() self:Log("SPELL_AURA_APPLIED", "StormShield", 93059) self:Log("SPELL_CAST_SUCCESS", "WindBlast", 86193) self:Log("SPELL_AURA_APPLIED_DOSE", "WindChill", 84645) + self:Log("SPELL_CAST_SUCCESS", "Permafrost", 86082) self:Log("SPELL_CAST_SUCCESS", "Nurture", 85422) self:Log("SPELL_AURA_APPLIED", "ToxicSpores", 86281) self:Log("SPELL_CAST_START", "SoothingBreeze", 86205) @@ -77,6 +79,7 @@ function mod:OnEngage() self:SimpleTimer(InitialBossCheck, 1) self:Berserk(480) self:Bar("full_power", 90, L["full_power"], 86193) + self:CDBar(86082, 11) -- Permafrost end -------------------------------------------------------------------------------- @@ -163,6 +166,11 @@ function mod:SoothingBreeze(args) end end +function mod:Permafrost(args) + self:CDBar(args.spellId, 11) + self:Message(args.spellId, "orange") +end + function mod:Nurture(args) toxicSporesWarned = false self:Bar(args.spellId, 113) diff --git a/Throne/Options/Colors.lua b/Throne/Options/Colors.lua index 4d352a6..7e82e5d 100644 --- a/Throne/Options/Colors.lua +++ b/Throne/Options/Colors.lua @@ -2,6 +2,7 @@ BigWigs:AddColors("Conclave of Wind", { [84645] = "blue", [85422] = "orange", + [86082] = "orange", [86193] = "red", [86205] = "orange", [86281] = "orange", From abbceb53d7bdfbbe3306a26ce6a3a4d672568acc Mon Sep 17 00:00:00 2001 From: Lord Blackadder Date: Mon, 29 Jul 2024 00:41:57 +0200 Subject: [PATCH 2/2] move message and first timer within range check --- Throne/Conclave.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Throne/Conclave.lua b/Throne/Conclave.lua index 702018f..406e1c8 100644 --- a/Throne/Conclave.lua +++ b/Throne/Conclave.lua @@ -79,7 +79,6 @@ function mod:OnEngage() self:SimpleTimer(InitialBossCheck, 1) self:Berserk(480) self:Bar("full_power", 90, L["full_power"], 86193) - self:CDBar(86082, 11) -- Permafrost end -------------------------------------------------------------------------------- @@ -103,6 +102,7 @@ function InitialBossCheck() local unit = mod:GetUnitIdByGUID(45871) -- Nezir if unit and mod:UnitWithinRange(unit, 100) then + mod:CDBar(86082, 11) -- Permafrost return end @@ -110,6 +110,7 @@ function InitialBossCheck() mod:Bar(85422, 29) -- Nurture mod:Bar(93059, 29) -- Storm Shield mod:Bar(86193, 29) -- Wind Blast + mod:CDBar(86082, 11) -- Permafrost end function mod:FullPower(args) @@ -168,7 +169,10 @@ end function mod:Permafrost(args) self:CDBar(args.spellId, 11) - self:Message(args.spellId, "orange") + local unit = mod:GetUnitIdByGUID(args.sourceGUID) + if unit and mod:UnitWithinRange(unit, 100) then + self:Message(args.spellId, "orange") + end end function mod:Nurture(args)