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

105 lines
6.0 KiB
Lua

-- High Priest Venoxis (Octo BigWigs Raids/ZG/Venoxis.lua), native server events.
-- boss_venoxis.cpp: Holy Nova 23858, Holy Fire 23860 (3.5 s cast), Renew 23895, Holy Wrath 23979; snake phase
-- (Snake Form 23849 / yell) Poison Cloud 23861, Venom Spit 23862, Frenzy 8269, Parasitic Serpent 23865;
-- Razzashi Cobra adds 11373.
local VENOXIS, COBRA = 14507, 11373
local L = {
bar_renew = "Renew", msg_renew = "Renew - Dispel!", bar_holyFireCast = "Casting Holy Fire!", bar_holyFireDur = " Holy Fire",
msg_holyFire = "Holy Fire - Dispel!", bar_holyWrathCd = "Holy Wrath CD", bar_holyNovaCd = "Holy Nova CD",
trigger_phase2 = "Let the coils of hate unfurl!", msg_phase2 = "Phase 2 - Avoid Poison Clouds!",
msg_poisonCloudYou = "Move away from poison cloud!", bar_venomSpit = " Venom Spit", msg_venomSpit = "Venom Spit - Dispel Poison!",
msg_enrage = "Venoxis is Enraged!", bar_parasiticSerpent = "Parasitic Serpent Spawn",
msg_parasiticSerpent = "Kill the Parasitic Serpent (Low HP) - AoE!", msg_addDead = "/4 Snake Adds Dead",
}
local timer = {renew = 15, holyFireCast = 3.5, holyFireDur = 8, holyWrathFirst = 30, holyWrath = {15, 25}, holyNovaFirst = 7.5,
holyNovaSecond = 21, holyNova = {16, 18}, parasiticSerpentSpawnFirst = 11, venomSpit = 10}
local icon = {renew = "Spell_Holy_Renew", holyFire = "Spell_Holy_SearingLight", holyWrath = "spell_nature_wispheal",
holyNova = "spell_holy_holynova", poisonCloud = "Ability_Creature_Disease_02", venomSpit = "spell_nature_corrosivebreath",
enrage = "Spell_Shadow_UnholyFrenzy", parasiticSerpent = "inv_misc_monstertail_03"}
local m = OctoBossMods:NewModule("High Priest Venoxis", {npcs = {VENOXIS, COBRA}, killNpcs = {VENOXIS},
displayName = "High Priest Venoxis", zone = "Zul'Gurub"})
local function class() local _, c = UnitClass("player") return c end
function m:OnEngage()
self.novas, self.adds, self.phase2 = 0, 0, false
self:Bar(L.bar_holyWrathCd, timer.holyWrathFirst, icon.holyWrath, true, "Yellow")
self:Bar(L.bar_holyNovaCd, timer.holyNovaFirst, icon.holyNova, true, "Blue")
end
function m:Renew(_, _, dstGUID)
if OctoBossMods.NpcId(dstGUID) ~= VENOXIS then return end
self:Bar(L.bar_renew, timer.renew, icon.renew, true, "White")
local c = class()
if c == "PRIEST" or c == "SHAMAN" then
self:Message(L.msg_renew, "Attention", false, "Alarm")
self:WarningSign(icon.renew, 0.7)
end
end
function m:RenewFade(_, _, dstGUID) if OctoBossMods.NpcId(dstGUID) == VENOXIS then self:RemoveBar(L.bar_renew) end end
function m:HolyFireCast() self:Bar(L.bar_holyFireCast, timer.holyFireCast, icon.holyFire, true, "Red") end
function m:HolyFire(_, _, _, dstName)
if not dstName then return end
self:RemoveBar(L.bar_holyFireCast)
self:Bar(dstName .. L.bar_holyFireDur, timer.holyFireDur, icon.holyFire, true, "Orange")
local c = class()
if c == "PRIEST" or c == "PALADIN" then self:Message(L.msg_holyFire, "Attention") end
end
function m:HolyFireFade(_, _, _, dstName) if dstName then self:RemoveBar(dstName .. L.bar_holyFireDur) end end
function m:HolyWrath()
if self:Throttle("wrath", 5) then self:IntervalBar(L.bar_holyWrathCd, timer.holyWrath[1], timer.holyWrath[2], icon.holyWrath, true, "Yellow") end
end
function m:HolyNova()
if self.phase2 or not self:Throttle("nova", 3) then return end
self.novas = self.novas + 1
self:RemoveBar(L.bar_holyNovaCd)
if self.novas == 1 then self:Bar(L.bar_holyNovaCd, timer.holyNovaSecond, icon.holyNova, true, "Blue")
else self:IntervalBar(L.bar_holyNovaCd, timer.holyNova[1], timer.holyNova[2], icon.holyNova, true, "Blue") end
end
function m:Phase2(_, _, dstGUID)
if self.phase2 or (dstGUID and OctoBossMods.NpcId(dstGUID) ~= VENOXIS) then return end
self.phase2 = true
self:RemoveBar(L.bar_holyNovaCd)
self:RemoveBar(L.bar_holyWrathCd)
self:RemoveBar(L.bar_renew)
self:Message(L.msg_phase2, "Important")
self:Bar(L.bar_parasiticSerpent, timer.parasiticSerpentSpawnFirst, icon.parasiticSerpent, true, "Cyan")
self:DelayedMessage(timer.parasiticSerpentSpawnFirst, L.msg_parasiticSerpent, "Important")
end
function m:PhaseYell() self:Phase2() end
function m:PoisonCloudYou(_, _, dstGUID)
if dstGUID ~= UnitGUID("player") or not self:Throttle("cloud", 2) then return end
self:Message(L.msg_poisonCloudYou, "Personal", false, "Info")
self:WarningSign(icon.poisonCloud, 10)
end
function m:PoisonCloudYouFade(_, _, dstGUID) if dstGUID == UnitGUID("player") then self:RemoveWarningSign(icon.poisonCloud) end end
function m:VenomSpit(_, _, _, dstName)
if not dstName then return end
self:Bar(dstName .. L.bar_venomSpit, timer.venomSpit, icon.venomSpit, true, "Green")
local c = class()
if c == "SHAMAN" or c == "DRUID" or c == "PALADIN" then
self:Message(L.msg_venomSpit, "Attention")
self:WarningSign(icon.venomSpit, 0.7)
end
end
function m:VenomSpitFade(_, _, _, dstName) if dstName then self:RemoveBar(dstName .. L.bar_venomSpit) end end
function m:Enrage(_, _, dstGUID)
if OctoBossMods.NpcId(dstGUID) ~= VENOXIS or not self:Throttle("enrage", 10) then return end
self:Message(L.msg_enrage, "Urgent", false, "Beware")
self:WarningSign(icon.enrage, 0.7)
end
function m:Parasite()
if self:Throttle("parasite", 5) then self:Message(L.msg_parasiticSerpent, "Important") end
end
function m:OnCombatLog(sub, _, _, dstGUID)
if sub == "UNIT_DIED" and OctoBossMods.NpcId(dstGUID) == COBRA then
self.adds = (self.adds or 0) + 1
self:Message(self.adds .. L.msg_addDead, "Positive")
end
end
m.yells = {{L.trigger_phase2, "PhaseYell"}}
m.events = {
SPELL_CAST_START = {[23860] = "HolyFireCast"},
SPELL_CAST_SUCCESS = {[23979] = "HolyWrath", [23858] = "HolyNova", [23849] = "Phase2", [23865] = "Parasite"},
SPELL_AURA_APPLIED = {[23895] = "Renew", [23860] = "HolyFire", [23849] = "Phase2", [23861] = "PoisonCloudYou",
[23862] = "VenomSpit", [8269] = "Enrage"},
SPELL_AURA_REMOVED = {[23895] = "RenewFade", [23860] = "HolyFireFade", [23861] = "PoisonCloudYouFade", [23862] = "VenomSpitFade"},
}