Skip to content

Commit

Permalink
Gnomeregan_Classic/Grubbis: Notify players that Petrify is interrupti…
Browse files Browse the repository at this point in the history
…ble and filter the cast alert to your current target, filter Enrage alerts to your current target in stage 3
  • Loading branch information
funkydude committed Feb 15, 2024
1 parent 6b01776 commit 5297437
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 18 deletions.
35 changes: 20 additions & 15 deletions Gnomeregan_Classic/Grubbis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if L then
L.cloud = "A cloud reached the boss"
L.cone = "\"Frontal\" cone" -- "Frontal" Cone, it's a rear cone (he's farting)
L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Interruptible"
end

--------------------------------------------------------------------------------
Expand All @@ -35,23 +36,23 @@ end
function mod:GetOptions()
return {
"stages",
434168, -- Irradiated Cloud
434724, -- Radiation Sickness
"adds",
3019, -- Enrage
436100, -- Petrify
436074, -- Trogg Rage
{436074, "CASTBAR"}, -- Trogg Rage
{436027, "CASTBAR"}, -- Grubbis Mad!
434941, -- Toxic Vigor
{436059, "CASTBAR"}, -- Radiation?
434724, -- Radiation Sickness
434168, -- Irradiated Cloud
},{
[3019] = CL.adds,
[436074] = L.bossName,
["adds"] = CL.adds,
[436100] = L.bossName,
},{
[434724] = CL.disease, -- Radiation Sickness (Disease)
[436027] = L.aoe, -- Grubbis Mad! (AoE melee damage)
[434941] = L.cloud, -- Toxic Vigor (A cloud reached the boss)
[436059] = L.cone, -- Radiation? ("Frontal" Cone)
[434724] = CL.disease, -- Radiation Sickness (Disease)
}
end

Expand Down Expand Up @@ -99,24 +100,28 @@ function mod:CHAT_MSG_MONSTER_SAY(_, msg)
end

function mod:Dispelled(args)
if args.extraSpellName == self:SpellName(3019) then
if args.extraSpellName == self:SpellName(3019) then -- Enrage
self:Message(3019, "green", CL.removed_by:format(args.extraSpellName, self:ColorName(args.sourceName)))
elseif args.extraSpellName == self:SpellName(436074) then
elseif args.extraSpellName == self:SpellName(436074) then -- Trogg Rage
self:Message(436074, "green", CL.removed_by:format(args.extraSpellName, self:ColorName(args.sourceName)))
elseif args.extraSpellName == self:SpellName(436100) then
self:Message(436100, "green", CL.removed_by:format(args.extraSpellName, self:ColorName(args.sourceName)))
end
end

function mod:EnrageApplied(args)
self:Message(args.spellId, "red", CL.magic_buff_other:format(args.destName, args.spellName))
if self:GetStage() ~= 3 or (self:GetStage() == 3 and args.destGUID == self:UnitGUID("target")) then
self:Message(args.spellId, "red", CL.magic_buff_other:format(args.destName, args.spellName))
end
end

function mod:Petrify(args)
self:Message(args.spellId, "orange", CL.casting:format(args.spellName))
self:CDBar(args.spellId, 21)
if self:Interrupter() then
self:PlaySound(args.spellId, "alert")

local npcId = self:MobId(self:UnitGUID("target"))
if npcId == 217956 then -- Chomper
self:Message(args.spellId, "orange", CL.other:format(args.spellName, L.interruptable))
self:PlaySound(args.spellId, "warning")
end
end

Expand All @@ -141,14 +146,14 @@ function mod:ChomperDied()
end

function mod:TroggRageApplied(args)
self:Message(args.spellId, "red", CL.buff_other:format(args.destName, args.spellName))
self:TargetBar(args.spellId, 10, args.destName)
self:Message(args.spellId, "red", CL.on:format(args.spellName, args.destName))
self:CastBar(args.spellId, 10)
self:CDBar(args.spellId, 22)
self:PlaySound(args.spellId, "alarm")
end

function mod:TroggRageRemoved(args)
self:StopBar(args.spellName, args.destName)
self:StopBar(CL.cast:format(args.spellName))
end

function mod:GrubbisMad(args)
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Eine Wolke hat den Boss erreicht"
L.cone = "\"Frontale\" Kegelattacke" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Unterbrechbar"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "deDE")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Una nube alcanzó al jefe"
L.cone = "Cono \"frontal\"" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Interrumpible"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "esES")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Una nube alcanzó al jefe"
L.cone = "Cono \"frontal\"" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Interrumpible"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "esMX")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Un nuage a atteint le boss"
L.cone = "Cône \"frontal\"" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Interrompable"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "frFR")
Expand Down
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
--L.cloud = "A cloud reached the boss"
--L.cone = "\"Frontal\" cone" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
--L.interruptable = "Interruptible"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "itIT")
Expand Down Expand Up @@ -40,6 +41,6 @@ end
L = BigWigs:NewBossLocale("Mekgineer Thermaplugg Discovery", "itIT")
if L then
--L.bossName = "Mekgineer Thermaplugg"
--L.interruptable = "Interruptable"
--L.interruptable = "Interruptible"
L.ready = "|cff20ff20Pronto|r"
end
3 changes: 2 additions & 1 deletion Gnomeregan_Classic/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
--L.cloud = "A cloud reached the boss"
--L.cone = "\"Frontal\" cone" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
--L.interruptable = "Interruptible"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "koKR")
Expand Down Expand Up @@ -40,6 +41,6 @@ end
L = BigWigs:NewBossLocale("Mekgineer Thermaplugg Discovery", "koKR")
if L then
L.bossName = "멕기니어 텔마플러그"
--L.interruptable = "Interruptable"
--L.interruptable = "Interruptible"
L.ready = "|cff20ff20준비|r"
end
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Uma nuvem chegou ao chefe"
L.cone = "Cone \"frontal\"" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Interrompível"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "ptBR")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "Облако достигло босса"
L.cone = "\"Фронтальный\" конус" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "Прерываемый"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "ruRU")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "一团毒云接近了首领"
L.cone = "辐射?" -- "Frontal" Cone, it's a rear cone (he's farting) 还是使用技能名称(诡异的技能)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "打断"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "zhCN")
Expand Down
1 change: 1 addition & 0 deletions Gnomeregan_Classic/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if L then
L.cloud = "一團毒雲接近了首領"
--L.cone = "\"Frontal\" cone" -- "Frontal" Cone, it's a rear cone (he's farting)
--L.warmup_say_chat_trigger = "Gnomeregan" -- There are still ventilation shafts actively spewing radioactive material throughout Gnomeregan.
L.interruptable = "打斷"
end

L = BigWigs:NewBossLocale("Viscous Fallout Discovery", "zhTW")
Expand Down
2 changes: 1 addition & 1 deletion Gnomeregan_Classic/MekgineerThermaplugg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local UpdateInfoBoxList
local L = mod:GetLocale()
if L then
L.bossName = "Mekgineer Thermaplugg"
L.interruptable = "Interruptable"
L.interruptable = "Interruptible"
L.ready = "|cff20ff20Ready|r"
end

Expand Down

0 comments on commit 5297437

Please sign in to comment.