Skip to content

Commit

Permalink
BlackfathomDeeps_Classic/Akumai: Import
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Dec 7, 2023
1 parent 887ef9b commit 76f36af
Show file tree
Hide file tree
Showing 12 changed files with 153 additions and 1 deletion.
102 changes: 102 additions & 0 deletions BlackfathomDeeps_Classic/Akumai.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
--------------------------------------------------------------------------------
-- Module Declaration
--

local mod, CL = BigWigs:NewBoss("Aku'mai Discovery", 48, -2891)
if not mod then return end
mod:RegisterEnableMob(213334) -- Aku'mai Season of Discovery
mod:SetEncounterID(2891)
mod:SetStage(1)

--------------------------------------------------------------------------------
-- Localization
--

local L = mod:GetLocale()
if L then
L.bossName = "Aku'mai"
end

--------------------------------------------------------------------------------
-- Initialization
--

function mod:GetOptions()
return {
"stages",
-- Stage 1
{429168, "CASTBAR"}, -- Corrosive Blast
427625, -- Corrosion
-- Stage 2
{429356, "CASTBAR"}, -- Void Blast
428482, -- Shadow Seep
},{
[429168] = CL.stage:format(1),
[429356] = CL.stage:format(2),
},{
[429168] = CL.breath, -- Corrosive Blast (Breath)
[429356] = CL.breath, -- Void Blast (Breath)
}
end

function mod:OnRegister()
self.displayName = L.bossName
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "CorrosiveBlastOrVoidBlast", 429168, 429356) -- Corrosive Blast, Void Blast
self:Log("SPELL_AURA_APPLIED", "DarkProtectionApplied", 429541)
self:Log("SPELL_AURA_REMOVED", "DarkProtectionRemoved", 429541)
self:Log("SPELL_AURA_APPLIED", "CorrosionOrShadowSeepApplied", 427625, 428482) -- Corrosion, Shadow Seep
self:Log("SPELL_AURA_APPLIED_DOSE", "CorrosionOrShadowSeepApplied", 427625, 428482) -- Corrosion, Shadow Seep
self:Log("SPELL_AURA_REMOVED", "CorrosionOrShadowSeepRemoved", 427625, 428482) -- Corrosion, Shadow Seep

self:Death("Win", 213334)
end

function mod:OnEngage()
self:SetStage(1)
self:CDBar(429168, 21, CL.breath) -- Corrosive Blast
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:CorrosiveBlastOrVoidBlast(args)
self:Message(args.spellId, "red", CL.breath)
self:Bar(args.spellId, 21, CL.breath)
self:CastBar(args.spellId, 3, CL.breath)
self:PlaySound(args.spellId, "warning")
end

function mod:DarkProtectionApplied(args)
self:StopBar(429168) -- Corrosive Blast
self:SetStage(1.5)
self:Message("stages", "cyan", CL.percent:format(50, CL.intermission), args.spellId)
self:Bar("stages", 17, CL.intermission, args.spellId)
self:PlaySound("stages", "long")
end

function mod:DarkProtectionRemoved()
self:SetStage(2)
self:Message("stages", "cyan", CL.stage:format(2), false)
self:PlaySound("stages", "info")
self:Bar(429356, 22, CL.breath) -- Void Blast
end

function mod:CorrosionOrShadowSeepApplied(args)
if self:Me(args.destGUID) then
local amount = args.amount or 1
self:StackMessage(args.spellId, "blue", args.destName, amount, 3)
if amount >= 3 then
self:PlaySound("stages", "alarm", nil, args.destName)
end
end
end

function mod:CorrosionOrShadowSeepRemoved(args)
if self:Me(args.destGUID) then
self:Message(args.spellId, "green", CL.removed:format(args.spellName))
end
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "deDE")
if L then
L.bossName = "Twilight-Lord Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "deDE")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "esES")
if L then
L.bossName = "Señor Crepuscular Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "esES")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "esMX")
if L then
--L.bossName = "Twilight Lord Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "esMX")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "frFR")
if L then
L.bossName = "Seigneur du crépuscule Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "frFR")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "itIT")
if L then
--L.bossName = "Twilight Lord Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "itIT")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "koKR")
if L then
L.bossName = "황혼의 군주 켈리스"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "koKR")
if L then
L.bossName = "아쿠마이"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "ptBR")
if L then
L.bossName = "Senhor do Crepúsculo Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "ptBR")
if L then
--L.bossName = "Aku'mai"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "ruRU")
if L then
L.bossName = "Повелитель сумрака Келрис"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "ruRU")
if L then
L.bossName = "Аку'май"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "zhCN")
if L then
L.bossName = "梦游者克尔里斯"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "zhCN")
if L then
L.bossName = "阿库麦尔"
end
5 changes: 5 additions & 0 deletions BlackfathomDeeps_Classic/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ L = BigWigs:NewBossLocale("Twilight Lord Kelris Discovery", "zhTW")
if L then
--L.bossName = "Twilight Lord Kelris"
end

L = BigWigs:NewBossLocale("Aku'mai Discovery", "zhTW")
if L then
--L.bossName = "Aku'mai"
end
2 changes: 1 addition & 1 deletion BlackfathomDeeps_Classic/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Script file="Gelihast.lua"/>
<Script file="LorgusJett.lua"/>
<Script file="TwilightLordKelris.lua"/>
<!--<Script file="Akumai.lua"/>-->
<Script file="Akumai.lua"/>

<Include file="Locales\locales.xml"/>
<Include file="Options\options.xml"/>
Expand Down

0 comments on commit 76f36af

Please sign in to comment.