Skip to content

Commit

Permalink
WarWithin/CinderbrewMeadery/Trash: Tenderize, ability throttles
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Jul 27, 2024
1 parent 97a867c commit cac8c0e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions WarWithin/CinderbrewMeadery/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ BigWigs:AddColors("Cinderbrew Meadery Trash", {
[442589] = "orange",
[442995] = "yellow",
[448619] = "orange",
[463206] = "yellow",
})
1 change: 1 addition & 0 deletions WarWithin/CinderbrewMeadery/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ BigWigs:AddSounds("Cinderbrew Meadery Trash", {
[442589] = "alarm",
[442995] = "alert",
[448619] = "alarm",
[463206] = "alert",
})
37 changes: 31 additions & 6 deletions WarWithin/CinderbrewMeadery/Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function mod:GetOptions()
434706, -- Cindrewbrew Toss
-- Chef Chewie
434998, -- High Steaks
463206, -- Tenderize
-- Flavor Scientist
441627, -- Rejuvenating Honey
441434, -- Failed Batch
Expand Down Expand Up @@ -102,6 +103,7 @@ function mod:OnBossEnable()

-- Chef Chewie
self:Log("SPELL_CAST_START", "HighSteaks", 434998)
self:Log("SPELL_CAST_START", "Tenderize", 463206)
self:Death("ChefChewieDeath", 214697)

-- Flavor Scientist
Expand Down Expand Up @@ -183,12 +185,23 @@ do
timer = self:ScheduleTimer("ChefChewieDeath", 30)
end

function mod:Tenderize(args)
if timer then
self:CancelTimer(timer)
end
self:Message(args.spellId, "yellow")
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 18.2)
timer = self:ScheduleTimer("ChefChewieDeath", 30)
end

function mod:ChefChewieDeath(args)
if timer then
self:CancelTimer(timer)
timer = nil
end
self:StopBar(434998) -- High Steaks
self:StopBar(463206) -- Tenderize
end
end

Expand Down Expand Up @@ -234,11 +247,16 @@ end
-- Bee Wrangler

do
local prev = 0
local function printTarget(self, name, guid)
self:TargetMessage(441119, "orange", name)
self:PlaySound(441119, "alarm", nil, name)
if self:Me(guid) then
self:Say(441119, nil, nil, "Bee-Zooka")
local t = GetTime()
if t - prev > 2 then
prev = t
if self:Me(guid) then
self:Say(441119, nil, nil, "Bee-Zooka")
end
self:PlaySound(441119, "alarm", nil, name)
end
end

Expand All @@ -261,9 +279,16 @@ end

-- Royal Jelly Purveyor

function mod:HoneyVolley(args)
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
do
local prev = 0
function mod:HoneyVolley(args)
local t = args.time
if t - prev > 2 then
prev = t
self:Message(args.spellId, "red", CL.casting:format(args.spellName))
self:PlaySound(args.spellId, "alert")
end
end
end

function mod:RainOfHoney(args)
Expand Down

0 comments on commit cac8c0e

Please sign in to comment.