78 lines
4.2 KiB
Lua
78 lines
4.2 KiB
Lua
-- High Priestess Jeklik (Octo BigWigs Raids/ZG/Jeklik.lua), native server events.
|
|
-- boss_jeklik.cpp: bat phase Terrifying Screech 6605, Sonic Burst 23918; phase 2 starts when Bat Form 23966 is removed
|
|
-- (instead of Octo's 50% health sync); troll phase Great Heal 23954 (4 s), Mind Flay 23953, Psychic Scream 8122/22884,
|
|
-- Liquid Fire bombs: Blaze 23972 on the ground.
|
|
local JEKLIK = 14517
|
|
local L = {
|
|
trigger_engage = "Lord Hir'eek, grant me wings of vengance!",
|
|
bar_healCast = "Heal - Interrupt!", bar_healCd = "Heal CD", msg_healCast = "Heal! Interrupt it!",
|
|
bar_fearCd = "Fear CD", msg_liquidFire = "Move away from Fire!", bar_mindflay = "Mind Flay - Interrupt!",
|
|
bar_silenceAfflicted = "People Silenced", bar_silenceCd = "Silence CD", bar_swam = "Bat Swarm", msg_p2 = "Phase 2",
|
|
}
|
|
local timer = {healCast = 4, healCd = 20, firstTerrifyingScreechCd = 18, terrifyingScreechCd = 30, psychicScreamCd = 39.5,
|
|
mindflay = 25, firstSilence = 12, silenceCd = 10, silenceAfflicted = 10, swarm = 45}
|
|
local icon = {heal = "Spell_Holy_Heal", terrifyingScreech = "Spell_Shadow_SummonImp", psychicScream = "Spell_Shadow_PsychicScream",
|
|
liquidFire = "spell_fire_incinerate", mindflay = "Spell_Shadow_SiphonMana", silence = "Spell_Holy_Silence", swarm = "Spell_Fire_SelfDestruct"}
|
|
local m = OctoBossMods:NewModule("High Priestess Jeklik", {npcs = {JEKLIK}, displayName = "High Priestess Jeklik", zone = "Zul'Gurub",
|
|
engageYells = {L.trigger_engage}})
|
|
local function interrupter() local _, c = UnitClass("player") return c == "WARRIOR" or c == "ROGUE" or c == "SHAMAN" end
|
|
function m:OnEngage()
|
|
self.phase2 = false
|
|
self:Bar(L.bar_fearCd, timer.firstTerrifyingScreechCd, icon.terrifyingScreech, true, "Blue")
|
|
self:Bar(L.bar_silenceCd, timer.firstSilence, icon.silence, true, "Black")
|
|
self:Bar(L.bar_swam, timer.swarm, icon.swarm, true, "Red")
|
|
end
|
|
function m:Phase2(_, _, dstGUID, _, spellId)
|
|
if self.phase2 or (spellId == 23966 and OctoBossMods.NpcId(dstGUID) ~= JEKLIK) then return end
|
|
self.phase2 = true
|
|
self:Message(L.msg_p2, "Attention")
|
|
self:RemoveBar(L.bar_fearCd)
|
|
self:RemoveBar(L.bar_silenceCd)
|
|
self:CancelDelayedBar(L.bar_silenceCd)
|
|
self:RemoveBar(L.bar_silenceAfflicted)
|
|
self:RemoveBar(L.bar_swam)
|
|
end
|
|
function m:Heal()
|
|
self:RemoveBar(L.bar_healCd)
|
|
self:Bar(L.bar_healCast, timer.healCast, icon.heal, true, "Green")
|
|
self:Message(L.msg_healCast, "Positive", false, "Beware")
|
|
if interrupter() then self:WarningSign(icon.heal, timer.healCast) end
|
|
end
|
|
function m:HealOver()
|
|
self:RemoveBar(L.bar_healCast)
|
|
self:RemoveWarningSign(icon.heal)
|
|
self:Bar(L.bar_healCd, timer.healCd, icon.heal, true, "White")
|
|
end
|
|
function m:Screech()
|
|
if self:Throttle("screech", 5) then self:Bar(L.bar_fearCd, timer.terrifyingScreechCd, icon.terrifyingScreech, true, "Blue") end
|
|
end
|
|
function m:PsychicScream()
|
|
if self:Throttle("scream", 5) then self:Bar(L.bar_fearCd, timer.psychicScreamCd, icon.psychicScream, true, "Blue") end
|
|
end
|
|
function m:LiquidFire(_, _, dstGUID)
|
|
if dstGUID ~= UnitGUID("player") or not self:Throttle("fire", 2) then return end
|
|
self:Message(L.msg_liquidFire, "Urgent", false, "Info")
|
|
self:WarningSign(icon.liquidFire, 0.7)
|
|
end
|
|
function m:MindFlay(_, srcName)
|
|
if not self:Throttle("flay", 2) then return end
|
|
self:Bar(L.bar_mindflay, 8, icon.mindflay, true, "Orange")
|
|
if interrupter() then self:WarningSign(icon.mindflay, 0.7) self:Sound("Alarm") end
|
|
end
|
|
function m:MindFlayFade() self:RemoveBar(L.bar_mindflay) self:RemoveWarningSign(icon.mindflay) end
|
|
function m:Silence()
|
|
if not self:Throttle("silence", 5) then return end
|
|
self:RemoveBar(L.bar_silenceCd)
|
|
self:Bar(L.bar_silenceAfflicted, timer.silenceAfflicted, icon.silence, true, "Cyan")
|
|
self:DelayedBar(timer.silenceAfflicted, L.bar_silenceCd, timer.silenceCd, icon.silence, true, "Black")
|
|
end
|
|
m.events = {
|
|
SPELL_AURA_REMOVED = {[23966] = "Phase2", [23953] = "MindFlayFade"},
|
|
SPELL_CAST_SUCCESS = {[24085] = "Phase2", [23954] = "HealOver", [6605] = "Screech", [8122] = "PsychicScream",
|
|
[22884] = "PsychicScream", [23918] = "Silence"},
|
|
SPELL_CAST_START = {[23954] = "Heal"},
|
|
SPELL_AURA_APPLIED = {[23953] = "MindFlay"},
|
|
SPELL_DAMAGE = {[23972] = "LiquidFire"},
|
|
SPELL_PERIODIC_DAMAGE = {[23972] = "LiquidFire"},
|
|
}
|