Skip to content

Commit

Permalink
Throne/Conclave: Add permafrost (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordblackadder authored Jul 28, 2024
1 parent 02db5fe commit 43aa238
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Throne/Conclave.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function mod:GetOptions()
93059, -- Storm Shield
-- Nezir
84645, -- Wind Chill
86082, -- Permafrost
-- Anshal
85422, -- Nurture
86281, -- Toxic Spores
Expand All @@ -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)
Expand Down Expand Up @@ -100,13 +102,15 @@ function InitialBossCheck()

local unit = mod:GetUnitIdByGUID(45871) -- Nezir
if unit and mod:UnitWithinRange(unit, 100) then
mod:CDBar(86082, 11) -- Permafrost
return
end

mod:Bar(86205, 17) -- Soothing Breeze
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)
Expand Down Expand Up @@ -163,6 +167,14 @@ function mod:SoothingBreeze(args)
end
end

function mod:Permafrost(args)
self:CDBar(args.spellId, 11)
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)
toxicSporesWarned = false
self:Bar(args.spellId, 113)
Expand Down
1 change: 1 addition & 0 deletions Throne/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
BigWigs:AddColors("Conclave of Wind", {
[84645] = "blue",
[85422] = "orange",
[86082] = "orange",
[86193] = "red",
[86205] = "orange",
[86281] = "orange",
Expand Down

0 comments on commit 43aa238

Please sign in to comment.