From 27ad02260dcf3e75f3cd2d84853e6701371a011f Mon Sep 17 00:00:00 2001 From: stako Date: Sat, 9 Nov 2024 14:37:03 -0800 Subject: [PATCH] Firelands: Add encounter IDs and respawn timers (#19) --- Firelands/Alysrazor.lua | 3 ++- Firelands/Baleroc.lua | 3 ++- Firelands/Bethtilac.lua | 4 ++-- Firelands/Ragnaros.lua | 4 ++-- Firelands/Rhyolith.lua | 4 ++-- Firelands/Shannox.lua | 4 ++-- Firelands/Staghelm.lua | 4 ++-- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Firelands/Alysrazor.lua b/Firelands/Alysrazor.lua index daac4ee..ed56745 100644 --- a/Firelands/Alysrazor.lua +++ b/Firelands/Alysrazor.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Alysrazor", 720, 194) if not mod then return end mod:RegisterEnableMob(52530, 53898, 54015, 53089) --Alysrazor, Voracious Hatchling, Majordomo Staghelm, Molten Feather +mod:SetEncounterID(1206) +mod:SetRespawnTime(30) local woundTargets = mod:NewTargetList() local meteorCount, moltCount, burnCount, initiateCount = 0, 0, 0, 0 @@ -98,7 +100,6 @@ function mod:OnBossEnable() self:Log("SPELL_CAST_START", "Firestorm", 100744) self:Log("SPELL_AURA_REMOVED", "FirestormOver", 100744) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") self:RegisterEvent("CHAT_MSG_MONSTER_YELL", "Initiates") self:Death("Win", 52530) diff --git a/Firelands/Baleroc.lua b/Firelands/Baleroc.lua index 4eef556..49ecad6 100644 --- a/Firelands/Baleroc.lua +++ b/Firelands/Baleroc.lua @@ -5,6 +5,8 @@ local mod = BigWigs:NewBoss("Baleroc", 720, 196) if not mod then return end mod:RegisterEnableMob(53494) +mod:SetEncounterID(1200) +mod:SetRespawnTime(30) local countdownTargets = mod:NewTargetList() local countdownCounter, shardCounter = 1, 0 @@ -47,7 +49,6 @@ function mod:OnBossEnable() self:Log("SPELL_CAST_START", "Shards", 99259) self:Log("SPELL_CAST_START", "Blades", 99352, 99350) self:Log("SPELL_AURA_APPLIED_DOSE", "Torment", 99256) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") self:Death("Win", 53494) end diff --git a/Firelands/Bethtilac.lua b/Firelands/Bethtilac.lua index 6e75047..a8322e2 100644 --- a/Firelands/Bethtilac.lua +++ b/Firelands/Bethtilac.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Beth'tilac", 720, 192) if not mod then return end mod:RegisterEnableMob(52498) +mod:SetEncounterID(1197) +mod:SetRespawnTime(30) -------------------------------------------------------------------------------- -- Locals @@ -63,8 +65,6 @@ function mod:OnBossEnable() self:Log("SPELL_CAST_START", "Devastate", 99052) self:Log("SPELL_CAST_SUCCESS", "Flare", 99859) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") - self:Death("Win", 52498) end diff --git a/Firelands/Ragnaros.lua b/Firelands/Ragnaros.lua index 1168895..517c00d 100644 --- a/Firelands/Ragnaros.lua +++ b/Firelands/Ragnaros.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Ragnaros", 720, 198) if not mod then return end mod:RegisterEnableMob(52409, 53231) --Ragnaros, Lava Scion +mod:SetEncounterID(1203) +mod:SetRespawnTime(30) -------------------------------------------------------------------------------- -- Locals @@ -90,8 +92,6 @@ function mod:OnBossEnable() self:Log("SPELL_AURA_APPLIED", "BurningWound", 99399) self:Log("SPELL_AURA_APPLIED_DOSE", "BurningWound", 99399) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") - self:Death("Win", 52409) self:Death("SonDeaths", 53140) -- Son of Flame end diff --git a/Firelands/Rhyolith.lua b/Firelands/Rhyolith.lua index a7707dd..05c9877 100644 --- a/Firelands/Rhyolith.lua +++ b/Firelands/Rhyolith.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Lord Rhyolith", 720, 193) if not mod then return end mod:RegisterEnableMob(52577, 53087, 52558) -- Left foot, Right Foot, Lord Rhyolith +mod:SetEncounterID(1204) +mod:SetRespawnTime(30) -------------------------------------------------------------------------------- -- Locals @@ -59,8 +61,6 @@ function mod:OnBossEnable() self:Log("SPELL_AURA_REMOVED_DOSE", "ObsidianStack", 98632) self:Log("SPELL_AURA_REMOVED", "Obsidian", 98632) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") - self:Death("Win", 52558) end diff --git a/Firelands/Shannox.lua b/Firelands/Shannox.lua index bde8858..048b294 100644 --- a/Firelands/Shannox.lua +++ b/Firelands/Shannox.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Shannox", 720, 195) if not mod then return end mod:RegisterEnableMob(53691, 53695, 53694) --Shannox, Rageface, Riplimb +mod:SetEncounterID(1205) +mod:SetRespawnTime(30) -------------------------------------------------------------------------------- -- Localization @@ -55,8 +57,6 @@ function mod:OnBossEnable() self:Log("SPELL_CAST_SUCCESS", "HurlSpear", 99978, 100002) -- Retail?, Cataclysm Classic self:Log("SPELL_SUMMON", "Traps", 99836, 99839) -- Throw Crystal Prison Trap, Throw Immolation Trap - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") - self:Death("Win", 53691) end diff --git a/Firelands/Staghelm.lua b/Firelands/Staghelm.lua index a070673..bba1fcc 100644 --- a/Firelands/Staghelm.lua +++ b/Firelands/Staghelm.lua @@ -5,6 +5,8 @@ local mod, CL = BigWigs:NewBoss("Majordomo Staghelm", 720, 197) if not mod then return end mod:RegisterEnableMob(52571, 53619) --Staghelm, Druid of the Flame +mod:SetEncounterID(1185) +mod:SetRespawnTime(30) -------------------------------------------------------------------------------- -- Locales @@ -65,8 +67,6 @@ function mod:OnBossEnable() self:Log("SPELL_AURA_REMOVED", "SearingSeedsRemoved", 98450) self:Log("SPELL_CAST_START", "BurningOrbs", 98451) - self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus") - self:Death("Win", 52571) end