Files
2026-11-23 03:28:32 +02:00

63 lines
3.5 KiB
Lua

-- Lower Karazhan Halls (Octo BigWigs Raids/Karazhan/{PhantomServant,Grizikil,ClawlordHowlfang}.lua), Turtle, native server events.
-- Spell IDs from lower_karazhan_halls/boss_*.cpp and spell_template.
-- Phantom Servant 61205: Phantom Scream 57062 every 10 s.
local servant = OctoBossMods:NewModule("Phantom Servant", {npcs = {61205}, displayName = "Phantom Servant", zone = "Karazhan", trash = true})
function servant:Scream()
if self:Throttle("scream", 3) then self:Bar("Phantom Scream CD", 10, "Spell_Shadow_PsychicScream", true, "White") end
end
servant.events = {SPELL_CAST_SUCCESS = {[57062] = "Scream"}, SPELL_AURA_APPLIED = {[57062] = "Scream"}}
-- Grizikil 61224: Flamewave 57091 (melee out), Grellkin Rain of Fire 57093/57747 on you.
local griz = OctoBossMods:NewModule("Grizikil", {npcs = {61224}, displayName = "Grizikil", zone = "Karazhan",
engageYells = {"Whats this? You're here for the orb?! ITS MINE, Grellkin, get them!"}})
function griz:OnEngage() self:Message("Pull --ALL-- imp packs before engaging Grizikil!", "Urgent") end
function griz:Flamewave(_, _, dstGUID)
if OctoBossMods.NpcId(dstGUID) ~= 61224 or not self:Throttle("wave", 3) then return end
self:Bar("Flamewave", 9, "spell_fire_incinerate", true, "Red")
self:Message("Flamewave, melee run out!", "Urgent", false, "Beware")
self:WarningSign("spell_fire_incinerate", 1)
end
function griz:FlamewaveFade(_, _, dstGUID)
if OctoBossMods.NpcId(dstGUID) == 61224 then self:RemoveBar("Flamewave") self:RemoveWarningSign("spell_fire_incinerate") end
end
function griz:RainYou(_, _, dstGUID)
if dstGUID ~= UnitGUID("player") or not self:Throttle("rain", 2) then return end
self:WarningSign("spell_shadow_rainoffire", 0.7)
self:Message("Get out of Rain of Fire!", "Important", false, "Info")
end
griz.events = {
SPELL_AURA_APPLIED = {[57091] = "Flamewave"}, SPELL_CAST_SUCCESS = {[57091] = "Flamewave"},
SPELL_AURA_REMOVED = {[57091] = "FlamewaveFade"},
SPELL_DAMAGE = {[57093] = "RainYou", [57747] = "RainYou"}, SPELL_PERIODIC_DAMAGE = {[57093] = "RainYou", [57747] = "RainYou"},
}
-- Clawlord Howlfang 61223: Terrifying Presence 57083 (stacking, 5% per stack), Shadowbane Curse 57084, Bloodfrenzy 57082.
local howl = OctoBossMods:NewModule("Clawlord Howlfang", {npcs = {61223}, displayName = "Clawlord Howlfang", zone = "Karazhan",
engageYells = {"So it was you I smelled! Such a foul taint."}})
function howl:OnEngage() self.presence = {} end
function howl:Presence(_, _, dstGUID, dstName, _, _, _, _, stacks)
if dstGUID ~= UnitGUID("player") or not dstName then return end
stacks = tonumber(stacks) or 1
if self.presence[dstName] then self:RemoveBar(self.presence[dstName]) end
self.presence[dstName] = dstName .. " " .. (stacks * 5) .. "% reduced"
self:Bar(self.presence[dstName], 10, "Spell_Shadow_VampiricAura", true, "White")
end
function howl:Curse()
local _, c = UnitClass("player")
if (c == "MAGE" or c == "DRUID") and self:Throttle("curse", 3) then
self:Message("Shadowbane Curse, Decurse!", "Urgent")
self:WarningSign("Spell_Shadow_GatherShadows", 0.7)
end
end
function howl:Enrage()
if not self:Throttle("enrage", 10) then return end
self:Message("Enrage!", "Attention")
self:WarningSign("Spell_Shadow_UnholyFrenzy", 0.7)
end
howl.yells = {{"My pack shall tear you apart, bone by bone!", "Enrage"}}
howl.events = {
SPELL_AURA_APPLIED = {[57083] = "Presence", [57084] = "Curse", [57082] = "Enrage"},
SPELL_AURA_APPLIED_DOSE = {[57083] = "Presence"},
}