Skip to content

Commit

Permalink
Updates and cleanups for classic
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Jun 11, 2024
1 parent 96b2a7d commit 0bf50e4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
17 changes: 1 addition & 16 deletions Blackwing/Magmaw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ mod:SetStage(1)
--

local isHeadPhase = false
local firstRefresh = false

--------------------------------------------------------------------------------
-- Localization
Expand Down Expand Up @@ -71,7 +70,6 @@ end

function mod:OnBossEnable()
self:RegisterEvent("CHAT_MSG_RAID_BOSS_EMOTE")
self:Log("SPELL_AURA_REFRESH", "PointOfVulnerabilityRefresh", 79010)
self:Log("SPELL_CAST_START", "MassiveCrash", 88253)
self:Log("SPELL_AURA_REMOVED", "MassiveCrashRemoved", 88253)
self:Log("SPELL_AURA_APPLIED", "ParasiticInfection", 78097, 78941)
Expand All @@ -95,7 +93,6 @@ end

function mod:OnEngage()
isHeadPhase = false
firstRefresh = false
self:SetStage(1)
self:Berserk(600)
self:Bar("slump", 100, L.slump_bar, 36702)
Expand Down Expand Up @@ -144,19 +141,7 @@ do
end
end

function mod:PointOfVulnerabilityRefresh(args)
if self:IsEngaged() then
if firstRefresh then
firstRefresh = false
self:Message(79011, "green", args.spellName, false, true) -- XXX TEST
else
self:Message(79011, "green", CL.over:format(args.spellName), false, true) -- XXX TEST
end
end
end

function mod:MassiveCrash(args)
firstRefresh = true
self:Message("slump", "green", args.spellName, false, true) -- XXX TEST
end

Expand All @@ -173,7 +158,7 @@ function mod:ArmageddonApplied(args)
end

function mod:ArmageddonRemoved(args)
self:StopBar(args.spellName)
self:StopBar(CL.cast:format(args.spellName))
end

do
Expand Down
11 changes: 7 additions & 4 deletions Blackwing/Nefarian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ local powerTargets = mod:NewTargetList()
local phase3warned = false
local shadowblazeHandle, lastBlaze = nil, 0
local blastNovaCollector = {}
local currentPercent = 100

--------------------------------------------------------------------------------
-- Localization
Expand Down Expand Up @@ -59,7 +60,7 @@ function mod:GetOptions()
81007,
80734, -- Blast Nova
-- Heroic
{79339, "CASTBAR", "SAY", "SAY_COUNTDOWN", "ME_ONLY_EMPHASIZE"}, -- Explosive Cinders
{79339, "COUNTDOWN", "SAY", "SAY_COUNTDOWN", "ME_ONLY_EMPHASIZE"}, -- Explosive Cinders
79318, -- Dominion
"berserk",
-- General
Expand Down Expand Up @@ -105,6 +106,7 @@ function mod:OnEngage()
phase3warned = false
shadowblazeHandle, lastBlaze = nil, 0
blastNovaCollector = {}
currentPercent = 100
self:SetStage(1)
self:RegisterUnitEvent("UNIT_POWER_FREQUENT", nil, "boss1", "boss2")
self:Berserk(630) -- is it really?
Expand All @@ -120,7 +122,8 @@ end

function mod:CHAT_MSG_RAID_BOSS_EMOTE(_, msg)
if msg:find(L.crackle_trigger, nil, true) and self:IsEngaged() then -- Not during the RP of activating the boss
self:Message(81272, "orange", CL.custom_sec:format(self:SpellName(81272), 5))
currentPercent = currentPercent - 10
self:Message(81272, "orange", CL.percent:format(currentPercent, CL.custom_sec:format(self:SpellName(81272), 5)))
self:CastBar(81272, 5) -- Electrocute
self:PlaySound(81272, "alert")
end
Expand Down Expand Up @@ -240,7 +243,7 @@ do
if self:Me(args.destGUID) then
self:Say(args.spellId, CL.bomb, nil, "Bomb")
self:SayCountdown(args.spellId, 8, nil, 5)
self:CastBar(args.spellId, 8, CL.bomb)
self:TargetBar(args.spellId, 8, args.destName, CL.bomb)
self:PlaySound(args.spellId, "warning")
end
end
Expand All @@ -249,7 +252,7 @@ end
function mod:ExplosiveCindersRemoved(args)
if self:Me(args.destGUID) then
self:CancelSayCountdown(args.spellId)
self:StopBar(CL.cast:format(CL.bomb))
self:StopBar(args.spellName, args.destName)
self:PersonalMessage(args.spellId, "removed", CL.bomb)
end
end
Expand Down
16 changes: 14 additions & 2 deletions Blackwing/Omnotron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "PowerGenerator", 79624)
-- Heroic
self:Log("SPELL_CAST_SUCCESS", "OverchargedPowerGenerator", 91857)
self:Log("SPELL_AURA_APPLIED", "OverchargedPowerGeneratorApplied", 91858)
self:Log("SPELL_CAST_START", "GripOfDeath", 91849)
self:Log("SPELL_AURA_APPLIED", "EncasingShadowsApplied", 92023)
self:Log("SPELL_AURA_APPLIED", "ShadowInfusionApplied", 92048)
Expand Down Expand Up @@ -234,7 +235,7 @@ end
do
local prev = 0
function mod:ChemicalCloudDamage(args)
if self:Me(args.destGUID) and args.time - prev > 2 then
if self:Me(args.destGUID) and args.time - prev > 3 then
prev = args.time
self:PersonalMessage(args.spellId, "underyou")
self:PlaySound(args.spellId, "underyou")
Expand Down Expand Up @@ -275,6 +276,17 @@ function mod:OverchargedPowerGenerator()
self:PlaySound(91879, "info")
end

do
local prev = 0
function mod:OverchargedPowerGeneratorApplied(args)
if self:Me(args.destGUID) and args.time - prev > 1.5 then
prev = args.time
self:PersonalMessage(91879, "underyou", L.pool_explosion)
self:PlaySound(91879, "underyou")
end
end
end

function mod:GripOfDeath(args)
self:Message(args.spellId, "orange")
self:CDBar("nef", 35, CL.next_ability, L.nef_icon)
Expand All @@ -300,7 +312,7 @@ end

function mod:ShadowInfusionRemoved(args)
if self:Me(args.destGUID) then
self:CancelYellCountdown(args.spellId)
self:CancelSayCountdown(args.spellId)
end
end

Expand Down

0 comments on commit 0bf50e4

Please sign in to comment.