Skip to content

Commit

Permalink
Cataclysm/Deadmines: Fix encounter detection in Retail (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle authored Dec 1, 2024
1 parent bea99cb commit ff9df8e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 5 deletions.
13 changes: 12 additions & 1 deletion Cataclysm/Deadmines/AdmiralRipsnarl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local mod, CL = BigWigs:NewBoss("Admiral Ripsnarl", 36, 92)
if not mod then return end
mod:RegisterEnableMob(47626) -- Admiral Ripsnarl
mod:SetEncounterID(1062)
mod:SetEncounterID(mod:Retail() and 2979 or 1062)
mod:SetRespawnTime(30)

--------------------------------------------------------------------------------
Expand All @@ -32,6 +32,17 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
if self:Normal() then
self:SetEncounterID(2974)
else -- Heroic
self:SetEncounterID(2979)
end
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 47626) -- Admiral Ripsnarl
end

-- Admiral Ripsnarl
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1") -- Vanish
self:Log("SPELL_CAST_SUCCESS", "GoForTheThroat", 88836)
Expand Down
13 changes: 12 additions & 1 deletion Cataclysm/Deadmines/Cookie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local mod, CL = BigWigs:NewBoss("Captain Cookie", 36, 93)
if not mod then return end
mod:RegisterEnableMob(47739) -- Cookie
mod:SetEncounterID(1060)
mod:SetEncounterID(mod:Retail() and 2978 or 1060)
mod:SetRespawnTime(30)

--------------------------------------------------------------------------------
Expand All @@ -21,6 +21,17 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
if self:Normal() then
self:SetEncounterID(2973)
else -- Heroic
self:SetEncounterID(2978)
end
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 47739) -- Cookie
end

self:Log("SPELL_CAST_SUCCESS", "CauldronFire", 89252) -- Throw Food (first one only)
self:Log("SPELL_AURA_APPLIED", "SatiatedApplied", 89267)
self:Log("SPELL_AURA_APPLIED_DOSE", "SatiatedApplied", 89267)
Expand Down
13 changes: 12 additions & 1 deletion Cataclysm/Deadmines/FoeReaper5000.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local mod, CL = BigWigs:NewBoss("Foe Reaper 5000", 36, 91)
if not mod then return end
mod:RegisterEnableMob(43778) -- Foe Reaper 5000
mod:SetEncounterID(1063)
mod:SetEncounterID(mod:Retail() and 2980 or 1063)
mod:SetRespawnTime(30)
mod:SetStage(1)

Expand All @@ -22,6 +22,17 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
if self:Normal() then
self:SetEncounterID(2975)
else -- Heroic
self:SetEncounterID(2980)
end
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 43778) -- Foe Reaper 5000
end

self:Log("SPELL_CAST_START", "Overdrive", 88481)
self:Log("SPELL_CAST_START", "Harvest", 88495)
self:Log("SPELL_CAST_SUCCESS", "SafetyRestrictionsOffline", 88522)
Expand Down
13 changes: 12 additions & 1 deletion Cataclysm/Deadmines/Glubtok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local mod, CL = BigWigs:NewBoss("Glubtok", 36, 89)
if not mod then return end
mod:RegisterEnableMob(47162) -- Glubtok
mod:SetEncounterID(1064)
mod:SetEncounterID(mod:Retail() and 2981 or 1064)
mod:SetRespawnTime(30)
mod:SetStage(1)

Expand All @@ -27,6 +27,17 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
if self:Normal() then
self:SetEncounterID(2976)
else -- Heroic
self:SetEncounterID(2981)
end
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 47162) -- Glubtok
end

-- Stage One: Fists of Flame and Frost
self:Log("SPELL_CAST_START", "FistsOfFlame", 87859)
self:Log("SPELL_CAST_START", "FistsOfFrost", 87861)
Expand Down
13 changes: 12 additions & 1 deletion Cataclysm/Deadmines/HelixGearbreaker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local mod, CL = BigWigs:NewBoss("Helix Gearbreaker", 36, 90)
if not mod then return end
mod:RegisterEnableMob(47296, 47297) -- Helix Gearbreaker, Lumbering Oaf
mod:SetEncounterID(1065)
mod:SetEncounterID(mod:Retail() and 2982 or 1065)
mod:SetRespawnTime(30)
mod:SetStage(1)

Expand All @@ -26,6 +26,17 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
if self:Normal() then
self:SetEncounterID(2977)
else -- Heroic
self:SetEncounterID(2982)
end
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 47296) -- Helix Gearbreaker
end

-- Lumbering Oaf
self:Log("SPELL_CAST_SUCCESS", "Charge", 88288) -- Oaf Smash
self:Death("LumberingOafDeath", 47297)
Expand Down
6 changes: 6 additions & 0 deletions Cataclysm/Deadmines/VanessaVanCleef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
if self:Retail() then
-- no ENCOUNTER_END in Retail since 11.0.5
self:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT", "CheckBossStatus")
self:Death("Win", 49541) -- Vanessa VanCleef
end

-- Autotalk
self:RegisterEvent("GOSSIP_SHOW")

Expand Down

0 comments on commit ff9df8e

Please sign in to comment.