65 lines
3.6 KiB
Lua
65 lines
3.6 KiB
Lua
-- Molten Core trash (Octo BigWigs Raids/MC/{CoreHound,FlameImp,Surger}.lua), native server events.
|
|
-- trash = true: no "defeated" message; respawn bars outlive the pull.
|
|
|
|
-- Core Hound packs: once one collapses the rest must die within 10 s or it revives.
|
|
local hounds = OctoBossMods:NewModule("Core Hound", {npcs = {11671}, displayName = "Core Hound", zone = "Molten Core", trash = true})
|
|
function hounds:Smolder()
|
|
if not self:Throttle("smolder", 9) then return end
|
|
self:Message("Kill all Core Hounds within 10 seconds", "Attention")
|
|
self:Bar("Respawn", 10, "spell_holy_resurrection", true, "Magenta")
|
|
end
|
|
hounds.emotes = {{"collapses and begins to smolder.", "Smolder"}}
|
|
|
|
-- Flame Imp packs respawn 7 minutes after they die.
|
|
local imps = OctoBossMods:NewModule("Flame Imp", {npcs = {11669}, displayName = "Flame Imp", zone = "Molten Core", trash = true})
|
|
local impPacks = 0
|
|
function imps:OnCombatLog(sub, _, _, dstGUID)
|
|
if sub ~= "UNIT_DIED" or OctoBossMods.NpcId(dstGUID) ~= 11669 or not self:Throttle("impdead", 30) then return end
|
|
impPacks = impPacks + 1
|
|
self:RespawnBar("Imp Pack " .. impPacks .. " Respawn", 420, "inv_misc_pocketwatch_01", "Magenta")
|
|
end
|
|
|
|
-- Lava Surger: Surge 19196 (molten_core.cpp) charges the farthest player; the raid stacks on the Surger.
|
|
local surger = OctoBossMods:NewModule("Lava Surger", {npcs = {12101}, displayName = "Lava Surger", zone = "Molten Core", trash = true})
|
|
function surger:Surge(_, _, dstGUID, dstName)
|
|
if not dstName or not self:Throttle("surge" .. dstName, 2) then return end
|
|
if dstGUID == UnitGUID("player") then
|
|
self:Message("S T A C K on the Surger", "Personal", false, "Beware")
|
|
self:WarningSign("ability_warrior_charge", 0.7)
|
|
else
|
|
self:Message(dstName .. " failed to stack on the Surger", "Important")
|
|
end
|
|
end
|
|
surger.events = {SPELL_DAMAGE = {[19196] = "Surge"}}
|
|
|
|
-- Ancient Core Hound: one random debuff every 14 s (first at 12 s). Spells 19364-19372 (spell_template).
|
|
local ach = OctoBossMods:NewModule("Ancient Core Hound", {npcs = {11673}, displayName = "Ancient Core Hound", zone = "Molten Core", trash = true})
|
|
local function dispelClass(set) local _, c = UnitClass("player") return set[c] end
|
|
local MAGIC, CURSE = {PRIEST = true, PALADIN = true}, {MAGE = true, DRUID = true}
|
|
local achDebuffs = {
|
|
[19365] = {msg = "Ancient Dread - Dispel!", icon = "spell_shadow_curseoftounges", who = MAGIC},
|
|
[19366] = {msg = "Cauterizing Flames - Dispel!", icon = "spell_fire_incinerate", who = MAGIC},
|
|
[19367] = {msg = "Withering Heat - Dispel!", icon = "spell_fire_fire", who = MAGIC},
|
|
[19372] = {msg = "Ancient Hysteria - Decurse!", icon = "spell_shadow_unholyfrenzy", who = CURSE},
|
|
[19369] = {bar = "Disorient", seconds = 5, icon = "spell_shadow_mindsteal"},
|
|
[19364] = {bar = "Ground Stomp", seconds = 5, icon = "ability_warstomp"},
|
|
}
|
|
function ach:OnEngage() self:Bar("Debuff", 12, "Spell_Shadow_UnholyFrenzy", true, "White") end
|
|
function ach:Debuff(_, _, _, _, spellId)
|
|
local d = achDebuffs[spellId]
|
|
if not d or not self:Throttle("debuff", 5) then return end
|
|
if d.bar then
|
|
self:Bar(d.bar, d.seconds, d.icon, true, d.bar == "Disorient" and "Red" or "Orange")
|
|
self:WarningSign(d.icon, 1)
|
|
self:DelayedBar(d.seconds, "Debuff", 14 - d.seconds, "Spell_Shadow_UnholyFrenzy", true, "White")
|
|
else
|
|
self:Bar("Debuff", 14, "Spell_Shadow_UnholyFrenzy", true, "White")
|
|
if dispelClass(d.who) then
|
|
self:Message(d.msg, "Urgent", false, "Info")
|
|
self:WarningSign(d.icon, 1)
|
|
end
|
|
end
|
|
end
|
|
ach.events = {SPELL_CAST_SUCCESS = {}}
|
|
for id in pairs(achDebuffs) do ach.events.SPELL_CAST_SUCCESS[id] = "Debuff" end
|