From 76f36aff01060d3049da18730020fb5c18b409b2 Mon Sep 17 00:00:00 2001 From: funkydude Date: Thu, 7 Dec 2023 07:55:43 +0000 Subject: [PATCH] BlackfathomDeeps_Classic/Akumai: Import --- BlackfathomDeeps_Classic/Akumai.lua | 102 ++++++++++++++++++++++ BlackfathomDeeps_Classic/Locales/deDE.lua | 5 ++ BlackfathomDeeps_Classic/Locales/esES.lua | 5 ++ BlackfathomDeeps_Classic/Locales/esMX.lua | 5 ++ BlackfathomDeeps_Classic/Locales/frFR.lua | 5 ++ BlackfathomDeeps_Classic/Locales/itIT.lua | 5 ++ BlackfathomDeeps_Classic/Locales/koKR.lua | 5 ++ BlackfathomDeeps_Classic/Locales/ptBR.lua | 5 ++ BlackfathomDeeps_Classic/Locales/ruRU.lua | 5 ++ BlackfathomDeeps_Classic/Locales/zhCN.lua | 5 ++ BlackfathomDeeps_Classic/Locales/zhTW.lua | 5 ++ BlackfathomDeeps_Classic/modules.xml | 2 +- 12 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 BlackfathomDeeps_Classic/Akumai.lua diff --git a/BlackfathomDeeps_Classic/Akumai.lua b/BlackfathomDeeps_Classic/Akumai.lua new file mode 100644 index 0000000..8092849 --- /dev/null +++ b/BlackfathomDeeps_Classic/Akumai.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/deDE.lua b/BlackfathomDeeps_Classic/Locales/deDE.lua index 87451ee..90db07f 100644 --- a/BlackfathomDeeps_Classic/Locales/deDE.lua +++ b/BlackfathomDeeps_Classic/Locales/deDE.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/esES.lua b/BlackfathomDeeps_Classic/Locales/esES.lua index f5295e2..83cfd4f 100644 --- a/BlackfathomDeeps_Classic/Locales/esES.lua +++ b/BlackfathomDeeps_Classic/Locales/esES.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/esMX.lua b/BlackfathomDeeps_Classic/Locales/esMX.lua index 3ff7b50..b18d91c 100644 --- a/BlackfathomDeeps_Classic/Locales/esMX.lua +++ b/BlackfathomDeeps_Classic/Locales/esMX.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/frFR.lua b/BlackfathomDeeps_Classic/Locales/frFR.lua index 06ac47f..f332a94 100644 --- a/BlackfathomDeeps_Classic/Locales/frFR.lua +++ b/BlackfathomDeeps_Classic/Locales/frFR.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/itIT.lua b/BlackfathomDeeps_Classic/Locales/itIT.lua index 26bb528..25c9677 100644 --- a/BlackfathomDeeps_Classic/Locales/itIT.lua +++ b/BlackfathomDeeps_Classic/Locales/itIT.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/koKR.lua b/BlackfathomDeeps_Classic/Locales/koKR.lua index f1d7459..efc2f8b 100644 --- a/BlackfathomDeeps_Classic/Locales/koKR.lua +++ b/BlackfathomDeeps_Classic/Locales/koKR.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/ptBR.lua b/BlackfathomDeeps_Classic/Locales/ptBR.lua index 30f43f4..4b26665 100644 --- a/BlackfathomDeeps_Classic/Locales/ptBR.lua +++ b/BlackfathomDeeps_Classic/Locales/ptBR.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/ruRU.lua b/BlackfathomDeeps_Classic/Locales/ruRU.lua index 48d4622..a16e621 100644 --- a/BlackfathomDeeps_Classic/Locales/ruRU.lua +++ b/BlackfathomDeeps_Classic/Locales/ruRU.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/zhCN.lua b/BlackfathomDeeps_Classic/Locales/zhCN.lua index 9c35d43..35bed76 100644 --- a/BlackfathomDeeps_Classic/Locales/zhCN.lua +++ b/BlackfathomDeeps_Classic/Locales/zhCN.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/Locales/zhTW.lua b/BlackfathomDeeps_Classic/Locales/zhTW.lua index 37ca2b2..75436f5 100644 --- a/BlackfathomDeeps_Classic/Locales/zhTW.lua +++ b/BlackfathomDeeps_Classic/Locales/zhTW.lua @@ -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 diff --git a/BlackfathomDeeps_Classic/modules.xml b/BlackfathomDeeps_Classic/modules.xml index d099810..390e09f 100644 --- a/BlackfathomDeeps_Classic/modules.xml +++ b/BlackfathomDeeps_Classic/modules.xml @@ -7,7 +7,7 @@