Skip to content

Commit

Permalink
Cataclysm/GrimBatol/Trash: Brutal Strike
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 14, 2024
1 parent 47c2558 commit d4b716d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cataclysm/GrimBatol/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ BigWigs:AddColors("Grim Batol Trash", {
[76711] = "red",
[451224] = {"blue","orange"},
[451241] = "purple",
[451364] = "purple",
[451378] = "purple",
[451387] = "cyan",
[451391] = {"blue","cyan","orange"},
Expand Down
1 change: 1 addition & 0 deletions Cataclysm/GrimBatol/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ BigWigs:AddSounds("Grim Batol Trash", {
[76711] = "alert",
[451224] = "alert",
[451241] = "alert",
[451364] = "alert",
[451378] = "alert",
[451387] = "info",
[451391] = {"alarm","info"},
Expand Down
22 changes: 21 additions & 1 deletion Cataclysm/GrimBatol/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function mod:GetOptions()
{451871, "NAMEPLATE"}, -- Mass Tremor
-- Twilight Brute
{456696, "NAMEPLATE"}, -- Obsidian Stomp
{451364, "TANK", "NAMEPLATE", "OFF"}, -- Brutal Strike
-- Twilight Destroyer
{451612, "SAY", "NAMEPLATE"}, -- Twilight Flame
451614, -- Twilight Ember
Expand Down Expand Up @@ -97,6 +98,8 @@ function mod:OnBossEnable()
-- Twilight Brute
self:RegisterEngageMob("TwilightBruteEngaged", 224152)
self:Log("SPELL_CAST_SUCCESS", "ObsidianStomp", 456696)
self:Log("SPELL_CAST_START", "BrutalStrike", 451364)
self:Log("SPELL_CAST_SUCCESS", "BrutalStrikeSuccess", 451364)
self:Death("TwilightBruteDeath", 224152)

-- Twilight Destroyer
Expand Down Expand Up @@ -214,6 +217,7 @@ function mod:TwilightBruteEngaged(guid)
-- don't start timers when attacking from Battered Red Drake
return
end
self:Nameplate(451364, 3.4, guid) -- Brutal Strike
self:Nameplate(456696, 10.3, guid) -- Obsidian Stomp
end

Expand All @@ -224,7 +228,7 @@ do
local unit = self:UnitTokenFromGUID(args.sourceGUID)
if unit and UnitCanAttack("player", unit) then
local t = args.time
if t - prev > 2 then
if t - prev > 1.5 then
prev = t
self:Message(args.spellId, "orange")
self:PlaySound(args.spellId, "alarm")
Expand All @@ -234,6 +238,22 @@ do
end
end

do
local prev = 0
function mod:BrutalStrike(args)
self:Nameplate(args.spellId, 0, args.sourceGUID)
if args.time - prev > 2 then
prev = args.time
self:Message(args.spellId, "purple")
self:PlaySound(args.spellId, "alert")
end
end
end

function mod:BrutalStrikeSuccess(args)
self:Nameplate(args.spellId, 15.0, args.sourceGUID)
end

function mod:TwilightBruteDeath(args)
self:ClearNameplate(args.destGUID)
end
Expand Down

0 comments on commit d4b716d

Please sign in to comment.