Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throne/Conclave: Add permafrost #16

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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