Skip to content

Commit

Permalink
Updates and cleanups for classic
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Aug 2, 2024
1 parent e5ee8ab commit de95f30
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 57 deletions.
1 change: 0 additions & 1 deletion Blackwing/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "deDE")
if L then
L.discharge = "Blitzentladung"
L.stage3_yell_trigger = "Ich habe versucht, ein guter Gastgeber zu sein" -- check
L.shadowblaze_yell_trigger = "Fleisch wird zu Asche!" -- check
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "esES")
if L then
L.discharge = "Descarga"
L.stage3_yell_trigger = "He intentado ser un buen anfitrión"
--L.shadowblaze_yell_trigger = "Flesh turns to ash!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "esMX")
if L then
L.discharge = "Descarga"
L.stage3_yell_trigger = "He intentado ser un buen anfitrión"
--L.shadowblaze_yell_trigger = "Flesh turns to ash!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "frFR")
if L then
L.discharge = "Décharge"
L.stage3_yell_trigger = "J'ai tout fait pour être un hôte accommodant"
L.shadowblaze_yell_trigger = "Que la chair se transforme en cendres !"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "itIT")
if L then
L.discharge = "Scarica"
L.stage3_yell_trigger = "Ho cercato di essere un'ospite cortese"
L.shadowblaze_yell_trigger = "La Carne si tramuta in cenere!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "koKR")
if L then
L.discharge = "번개 방출"
L.stage3_yell_trigger = "품위있는"
L.shadowblaze_yell_trigger = "살을 재로 만들어 주마!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "ptBR")
if L then
L.discharge = "Descarga"
L.stage3_yell_trigger = "Eu tentei ser um anfitrião afável, mas vocês se recusaram a morrer! Está na hora de acabar com o fingimento e simplesmente... MATAR TODOS VOCÊS!"
--L.shadowblaze_yell_trigger = "Flesh turns to ash!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "ruRU")
if L then
L.discharge = "Искровой разряд"
L.stage3_yell_trigger = "Я пытался следовать законам гостеприимства"
--L.shadowblaze_yell_trigger = "Flesh turns to ash!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "zhCN")
if L then
L.discharge = "闪电倾泻"
L.stage3_yell_trigger = "我一直在尝试扮演好客的主人,可你们就是不肯受死!该卸下伪装了……杀光你们!"
L.shadowblaze_yell_trigger = "血肉化为灰烬!"
--L.too_close = "Dragons are too close"
end
1 change: 0 additions & 1 deletion Blackwing/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ L = BigWigs:NewBossLocale("Nefarian", "zhTW")
if L then
L.discharge = "閃電釋放"
L.stage3_yell_trigger = "我本來只想略盡地主之誼"
L.shadowblaze_yell_trigger = "化為灰燼吧!"
--L.too_close = "Dragons are too close"
end
78 changes: 31 additions & 47 deletions Blackwing/Nefarian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ mod:SetStage(1)
-- Locals
--

local shadowBlazeTimer = 35
local shadowblazeHandle, lastBlaze = nil, 0
local sparkCount = 0
local blastNovaCollector = {}
local addsCollector = {}
local currentPercent = 100
Expand All @@ -34,8 +33,8 @@ local L = mod:GetLocale()
if L then
L.discharge = "Discharge"
L.stage3_yell_trigger = "I have tried to be an accommodating host"
L.shadowblaze_yell_trigger = "Flesh turns to ash!"
L.too_close = "Dragons are too close"
L["77939_icon"] = "spell_nature_lightning"
end

--------------------------------------------------------------------------------
Expand All @@ -49,14 +48,15 @@ function mod:GetOptions()
78999, -- Electrical Overload
-- Normal
{81272, "CASTBAR"}, -- Electrocute
81007, -- Shadowblaze
78620, -- Children of Deathwing
77826, -- Shadowflame Breath
{77827, "OFF"}, -- Tail Lash
"infobox",
"stages",
-- Stage 2
80734, -- Blast Nova
81031, -- Shadowblaze Spark
81007, -- Shadowblaze
-- Heroic
{79339, "CASTBAR", "CASTBAR_COUNTDOWN", "SAY", "SAY_COUNTDOWN", "ME_ONLY_EMPHASIZE"}, -- Explosive Cinders
79318, -- Dominion
Expand All @@ -65,13 +65,14 @@ function mod:GetOptions()
[77939] = -3283, -- Onyxia
[81272] = "normal",
[80734] = CL.stage:format(2),
[81031] = CL.stage:format(3),
[79339] = "heroic",
},{
[77939] = L.discharge, -- Lightning Discharge (Discharge)
[78999] = CL.full_energy, -- Electrical Overload (Full Energy)
[81007] = CL.underyou:format(CL.fire), -- Shadowblaze (Fire under YOU)
[78620] = L.too_close, -- Children of Deathwing (Dragons are too close)
[77826] = CL.breath, -- Shadowflame Breath (Breath)
[81007] = CL.underyou:format(CL.fire), -- Shadowblaze (Fire under YOU)
[79339] = CL.bomb, -- Explosive Cinders (Bomb)
}
end
Expand All @@ -84,7 +85,7 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "TailLash", 77827)

-- Stage 1
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1", "boss2")
self:Log("SPELL_CAST_SUCCESS", "LightningDischarge", 78090)
self:Log("SPELL_AURA_APPLIED", "ChildrenOfDeathwingApplied", 78619, 78620)
self:Log("SPELL_AURA_REFRESH", "ChildrenOfDeathwingApplied", 78619, 78620)
self:Log("SPELL_AURA_APPLIED", "Empower", 79330)
Expand All @@ -102,13 +103,13 @@ function mod:OnBossEnable()

-- Stage 3
self:RegisterEvent("CHAT_MSG_MONSTER_YELL")
self:Log("SPELL_CAST_SUCCESS", "ShadowblazeSpark", 81031)
self:Log("SPELL_DAMAGE", "ShadowblazeDamage", 81007)
self:Log("SPELL_MISSED", "ShadowblazeDamage", 81007)
end

function mod:OnEngage()
shadowBlazeTimer = 35
shadowblazeHandle, lastBlaze = nil, 0
sparkCount = 0
blastNovaCollector = {}
addsCollector = {}
currentPercent = 100
Expand All @@ -122,7 +123,7 @@ function mod:OnEngage()
self:SetStage(1)
self:RegisterUnitEvent("UNIT_POWER_FREQUENT", nil, "boss1", "boss2")
self:Berserk(630)
self:CDBar(77939, 24, L.discharge)
self:CDBar(77939, 24, L.discharge, "spell_nature_lightning")
self:Bar("stages", 30, self:SpellName(-3279), "achievement_boss_nefarion") -- Nefarian
self:ScheduleTimer("NefarianLanding", 30)
if self:Heroic() and not self:Solo() then
Expand Down Expand Up @@ -196,13 +197,12 @@ function mod:TailLash(args)
end

-- Stage 1
function mod:UNIT_SPELLCAST_SUCCEEDED(_, unit, _, spellId)
if spellId == 78090 then -- Lightning Discharge
self:CDBar(77939, 22, L.discharge)
if self:UnitGUID("target") == self:UnitGUID(unit) or self:UnitWithinRange(unit, 30) then -- Target is Onyxia, or she is nearby
self:Message(77939, "yellow", CL.casting:format(self:SpellName(77939)))
self:CastBar(77939, 5, L.discharge)
end
function mod:LightningDischarge(args)
self:CDBar(77939, 22, L.discharge, args.spellId)
local unit = self:GetUnitIdByGUID(args.sourceGUID)
if self:UnitGUID("target") == args.sourceGUID or (unit and self:UnitWithinRange(unit, 30)) then -- Target is Onyxia, or she is nearby
self:Message(77939, "yellow", CL.casting:format(L.discharge), args.spellId)
self:CastBar(77939, 5, L.discharge, args.spellId)
end
end

Expand Down Expand Up @@ -345,39 +345,23 @@ function mod:ChromaticPrototypeDeaths()
end
end

do
local function nextBlaze(self)
lastBlaze = GetTime()
if shadowBlazeTimer > 10 and self:Heroic() then
shadowBlazeTimer = shadowBlazeTimer - 5
elseif shadowBlazeTimer > 15 and not self:Heroic() then
shadowBlazeTimer = shadowBlazeTimer - 5
function mod:CHAT_MSG_MONSTER_YELL(_, msg)
if msg:find(L.stage3_yell_trigger, nil, true) then
self:StopBar(CL.bombs) -- Explosive Cinders
if self:Heroic() and not self:Solo() then
self:CDBar(79318, 20) -- Dominion
end
shadowblazeHandle = self:ScheduleTimer(nextBlaze, shadowBlazeTimer, self)
self:Message(81007, "red") -- Shadowblaze
self:Bar(81007, shadowBlazeTimer) -- Shadowblaze
self:PlaySound(81007, "alarm")
self:CDBar(81031, 10) -- Shadowblaze Spark
end
function mod:CHAT_MSG_MONSTER_YELL(_, msg)
if msg:find(L.stage3_yell_trigger, nil, true) then
self:StopBar(CL.bombs) -- Explosive Cinders
if self:Heroic() and not self:Solo() then
self:CDBar(79318, 20) -- Dominion
end
self:Bar(81007, 12) -- Shadowblaze
shadowblazeHandle = self:ScheduleTimer(nextBlaze, 12, self)
elseif msg:find(L.shadowblaze_yell_trigger, nil, true) then
if shadowblazeHandle then
self:CancelTimer(shadowblazeHandle)
end
if (GetTime() - lastBlaze) <= 3 then
shadowblazeHandle = self:ScheduleTimer(nextBlaze, shadowBlazeTimer, self)
elseif (GetTime() - lastBlaze) >= 6 then
nextBlaze(self)
return
end
lastBlaze = GetTime()
end
end

do
local timers = {30, 25, 20, 15}
function mod:ShadowblazeSpark(args)
sparkCount = sparkCount + 1
self:Message(args.spellId, "red")
self:Bar(args.spellId, timers[sparkCount] or self:Normal() and 15 or 10)
self:PlaySound(args.spellId, "alarm")
end
end

Expand Down

0 comments on commit de95f30

Please sign in to comment.