Skip to content

Commit

Permalink
Legion/DarkheartThicket/Oakheart: Alert Crushing Grip throw target, c…
Browse files Browse the repository at this point in the history
…olor update
  • Loading branch information
ntowle committed Nov 24, 2023
1 parent ec2c448 commit 3d1df51
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Schreckensfeuerwichtel"
L.tormented_bloodseeker = "Gequälter Blutsucher"
end

L = BigWigs:NewBossLocale("Oakheart", "deDE")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Diablillo de fuego aterrador"
L.tormented_bloodseeker = "Buscasangre atormentado"
end

L = BigWigs:NewBossLocale("Oakheart", "esES") or BigWigs:NewBossLocale("Oakheart", "esMX")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Diablotin brûle-effroi"
L.tormented_bloodseeker = "Cherche-sang tourmenté"
end

L = BigWigs:NewBossLocale("Oakheart", "frFR")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Imp Malofuoco"
L.tormented_bloodseeker = "Bramasangue Tormentato"
end

L = BigWigs:NewBossLocale("Oakheart", "itIT")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "공포화염 임프"
L.tormented_bloodseeker = "고통의 흡혈박쥐"
end

L = BigWigs:NewBossLocale("Oakheart", "koKR")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Diabrete do Fogo Mórbido"
L.tormented_bloodseeker = "Sanguinário Atormentado"
end

L = BigWigs:NewBossLocale("Oakheart", "ptBR")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "Бес ужасающего огня"
L.tormented_bloodseeker = "Истерзанный кровопийца"
end

L = BigWigs:NewBossLocale("Oakheart", "ruRU")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "骇火小鬼"
L.tormented_bloodseeker = "痛苦的吸血蝠"
end

L = BigWigs:NewBossLocale("Oakheart", "zhCN")
if L then
--L.throw = "Throw"
end
5 changes: 5 additions & 0 deletions Legion/DarkheartThicket/Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ if L then
L.dreadfire_imp = "懼火小鬼"
L.tormented_bloodseeker = "痛苦的覓血蝙蝠"
end

L = BigWigs:NewBossLocale("Oakheart", "zhTW")
if L then
--L.throw = "Throw"
end
53 changes: 50 additions & 3 deletions Legion/DarkheartThicket/Oakheart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,35 @@ local nextStranglingRoots = 0
local nextNightmareBreath = 0
local nextShatteredEarth = 0

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

local L = mod:GetLocale()
if L then
L.throw = "Throw"
end

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

function mod:GetOptions()
return {
204611, -- Crushing Grip
{204611, "SAY"}, -- Crushing Grip
212786, -- Uproot
{204574, "DISPEL"}, -- Strangling Roots
204667, -- Nightmare Breath
204666, -- Shattered Earth
}, nil, {
[204611] = L.throw,
}
end

function mod:OnBossEnable()
self:Log("SPELL_CAST_START", "CrushingGrip", 204611)
self:Log("SPELL_CAST_SUCCESS", "CrushingGripSuccess", 204611)
self:Log("SPELL_CAST_START", "CrushingGripThrow", 204646)
self:Log("SPELL_CAST_START", "Uproot", 212786)
self:Log("SPELL_CAST_START", "StranglingRoots", 204574)
self:Log("SPELL_AURA_APPLIED", "StranglingRootsApplied", 199063)
Expand Down Expand Up @@ -76,7 +89,9 @@ end
function mod:CrushingGrip(args)
local t = GetTime()
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alert")
if self:Tank() then
self:PlaySound(args.spellId, "alert")
end
if self:Mythic() then
self:CDBar(args.spellId, 31.2)
nextCrushingGrip = t + 31.2
Expand Down Expand Up @@ -104,6 +119,38 @@ function mod:CrushingGrip(args)
end
end

do
local pickedUpPlayerGUID

function mod:CrushingGripSuccess(args)
pickedUpPlayerGUID = args.destGUID
end

local function printTarget(self, name, guid)
if guid == pickedUpPlayerGUID then
-- tank (possibly only one standing) is just being dropped
if not self:Tank() then -- tank gets notified in :CrushingGrip
self:Message(204611, "orange", L.throw)
self:PlaySound(204611, "alarm", nil, name)
end
else
-- tank is being thrown at another player
self:TargetMessage(204611, "orange", name, L.throw)
if not self:Tank() then -- sound played for tank in :CrushingGrip
self:PlaySound(204611, "alarm", nil, name)
end
if self:Me(guid) then
self:Say(204611, L.throw)
end
end
pickedUpPlayerGUID = nil
end

function mod:CrushingGripThrow(args)
self:GetBossTarget(printTarget, 0.3, args.sourceGUID)
end
end

function mod:Uproot(args)
-- spawns one Vilethorn Sapling for each Strangling Roots spawned
local t = GetTime()
Expand Down Expand Up @@ -173,7 +220,7 @@ end

function mod:NightmareBreath(args)
local t = GetTime()
self:Message(args.spellId, "orange")
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alarm")
if self:Mythic() then
self:CDBar(args.spellId, 31.2)
Expand Down
4 changes: 2 additions & 2 deletions Legion/DarkheartThicket/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ BigWigs:AddColors("Archdruid Glaidalis", {

BigWigs:AddColors("Oakheart", {
[204574] = {"blue","red","yellow"},
[204611] = "purple",
[204611] = {"blue","orange","purple"},
[204666] = "red",
[204667] = "orange",
[204667] = "purple",
[212786] = "cyan",
})

Expand Down
2 changes: 1 addition & 1 deletion Legion/DarkheartThicket/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BigWigs:AddSounds("Archdruid Glaidalis", {

BigWigs:AddSounds("Oakheart", {
[204574] = {"alert","info"},
[204611] = "alert",
[204611] = {"alarm","alert"},
[204666] = "alert",
[204667] = "alarm",
[212786] = "long",
Expand Down

0 comments on commit 3d1df51

Please sign in to comment.