Skip to content

Commit

Permalink
Warmane-TowerDefense: add Wrath of Ragnaros runout warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Jan 3, 2025
1 parent b15d583 commit 4d2691c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DBM-WorldEvents/WarmaneEvents/TowerDefense.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local mod = DBM:NewMod("WarmaneTowerDefense", "DBM-WorldEvents", 2)
local L = mod:GetLocalizedStrings()

mod:SetRevision("20250103112749")
mod:SetRevision("20250103191635")
mod:SetUsedIcons(1, 2, 3, 4, 5)
mod:SetHotfixNoticeRev(20241231000000)
mod.noStatistics = true -- needed to avoid Start/End chat messages, as well as other interactions not really suited for this event (wave based)
Expand Down Expand Up @@ -64,6 +64,7 @@ mod:AddSetIconOption("SetIconOnMindControl", 28410, true, 0, {1, 2, 3, 4, 5})
mod:AddBoolOption("EqUneqWeapons", mod:IsDps(), nil, nil, nil, nil, 28410)

-- Ragnaros (400049)
local specWarnWrathOfRagnarosRun = mod:NewSpecialWarningRun(20566, "Melee", nil, nil, 4, 2)

-- Illidan Stormrage (400022)

Expand All @@ -77,6 +78,7 @@ local mindControlledTargets = {}
local activeBoss -- don't sync, due to localization
local counterspellName = DBM:GetSpellInfo(29961)
local iceBurstSpellName = DBM:GetSpellInfo(69108)
local wrathOfRagnarosSpellName = DBM:GetSpellInfo(20566)
mod.vb.roundCounter = 0
mod.vb.isBossRound = false
mod.vb.mindControlIcon = 1
Expand Down Expand Up @@ -254,6 +256,8 @@ function mod:UNIT_SPELLCAST_START(unit, spellName)
self:SendSync("TowerDefense-IceBurst")
elseif spellName == counterspellName and self:GetUnitCreatureId(unit) == 400024 and self:AntiSpam(1, 6) then -- Counterspell
self:SendSync("TowerDefense-Counterspell")
elseif spellName == wrathOfRagnarosSpellName and self:AntiSpam(1, 7) then -- Wrath of Ragnaros
self:SendSync("TowerDefense-WrathOfRagnaros")
end
end

Expand Down Expand Up @@ -309,5 +313,8 @@ function mod:OnSync(msg)
elseif msg == "TowerDefense-Counterspell" then
specWarnCounterspellStopCast:Show()
specWarnCounterspellStopCast:Play("stopcast")
elseif msg == "TowerDefense-WrathOfRagnaros" then
specWarnWrathOfRagnarosRun:Show()
specWarnWrathOfRagnarosRun:Play("runout")
end
end

0 comments on commit 4d2691c

Please sign in to comment.