Skip to content

Commit

Permalink
Legion/BlackRookHold/Smashspite: Ability counts, Hateful Gaze updates…
Browse files Browse the repository at this point in the history
…, timer updates
  • Loading branch information
ntowle committed Nov 24, 2023
1 parent f504bc0 commit 569e90b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
1 change: 1 addition & 0 deletions Legion/BlackRookHold/Options/Colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BigWigs:AddColors("Smashspite", {
[198079] = {"blue","orange"},
[198245] = "purple",
[198446] = {"blue","red"},
[224188] = "green",
})

BigWigs:AddColors("Kurtalos Ravencrest", {
Expand Down
3 changes: 2 additions & 1 deletion Legion/BlackRookHold/Options/Sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ BigWigs:AddSounds("Illysanna Ravencrest", {

BigWigs:AddSounds("Smashspite", {
[198073] = "alert",
[198079] = "alarm",
[198079] = {"alarm","warning"},
[198245] = "alert",
[198446] = {"alarm","alert"},
[224188] = "info",
})

BigWigs:AddSounds("Kurtalos Ravencrest", {
Expand Down
42 changes: 31 additions & 11 deletions Legion/BlackRookHold/Smashspite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ mod:RegisterEnableMob(98949) -- Smashspite the Hateful
mod:SetEncounterID(1834)
mod:SetRespawnTime(30)

--------------------------------------------------------------------------------
-- Locals
--

local earthshakingStompCount = 1
local hatefulGazeCount = 1
local playersWithHatefulCharge = {}

--------------------------------------------------------------------------------
-- Initialization
--
Expand All @@ -33,42 +41,55 @@ function mod:OnBossEnable()
end

function mod:OnEngage()
earthshakingStompCount = 1
if not self:Normal() then -- Heroic+
self:CDBar(198079, 5.8) -- Hateful Gaze
hatefulGazeCount = 1
playersWithHatefulCharge = {}
self:CDBar(198079, 5.1, CL.count:format(self:SpellName(198079), hatefulGazeCount)) -- Hateful Gaze
end
self:CDBar(198073, 12.1) -- Earthshaking Stomp
self:CDBar(198073, 12.1, CL.count:format(self:SpellName(198073), earthshakingStompCount)) -- Earthshaking Stomp
end

--------------------------------------------------------------------------------
-- Event Handlers
--

function mod:EarthshakingStomp(args)
self:Message(args.spellId, "yellow")
self:StopBar(CL.count:format(args.spellName, earthshakingStompCount))
self:Message(args.spellId, "yellow", CL.count:format(args.spellName, earthshakingStompCount))
self:PlaySound(args.spellId, "alert")
self:CDBar(args.spellId, 25.5)
earthshakingStompCount = earthshakingStompCount + 1
self:CDBar(args.spellId, 25.5, CL.count:format(args.spellName, earthshakingStompCount))
end

function mod:HatefulGaze(args)
self:StopBar(CL.count:format(args.spellName, hatefulGazeCount))
self:TargetMessage(args.spellId, "orange", args.destName, CL.count:format(args.spellName, hatefulGazeCount))
-- play warning sound if the targeted player already has the debuff
if playersWithHatefulCharge[args.destName] then
self:PlaySound(args.spellId, "warning", nil, args.destName)
else
self:PlaySound(args.spellId, "alarm", nil, args.destName)
end
if self:Me(args.destGUID) then
self:Say(args.spellId)
end
-- TODO alert differently if the target has the debuff or not?
self:TargetMessage(args.spellId, "orange", args.destName)
self:PlaySound(args.spellId, "alarm", nil, args.destName)
self:CDBar(args.spellId, 25.5)
hatefulGazeCount = hatefulGazeCount + 1
self:CDBar(args.spellId, 25.5, CL.count:format(args.spellName, hatefulGazeCount))
end

function mod:HatefulChargeApplied(args)
playersWithHatefulCharge[args.destName] = true
if self:Me(args.destGUID) then
-- TODO show for everyone?
self:TargetBar(args.spellId, 60, args.destName)
end
-- TODO infotable?
end

function mod:HatefulChargeRemoved(args)
playersWithHatefulCharge[args.destName] = nil
if self:Me(args.destGUID) then
self:Message(args.spellId, "green", CL.removed:format(args.spellName))
self:PlaySound(args.spellId, "info")
self:StopBar(args.spellId, args.destName)
end
end
Expand All @@ -87,5 +108,4 @@ function mod:FelVomit(args)
else
self:PlaySound(args.spellId, "alert", nil, args.destName)
end
-- TODO might need a CD table if it's consistent pull to pull?
end

0 comments on commit 569e90b

Please sign in to comment.