34 lines
1.8 KiB
Lua
34 lines
1.8 KiB
Lua
-- Sanv Tas'dal (Octo BigWigs Raids/KarazhanUpper/SanvTasdal.lua), Turtle Upper Karazhan, native server events.
|
|
-- boss_sanv_tasdal.cpp: Overflowing Hatred 51204 (6 s cast), Phase Shifted 51197/51200 (kill the Netherwalkers 59978).
|
|
local L = {
|
|
bar_overflowingHatredCast = "Overflowing Hatred", msg_overflowingHatred = "Overflowing Hatred casting - Hide!",
|
|
msg_phaseShiftedYou = "Phase Shift on YOU - KILL NetherWalkers!", msg_phaseShiftedOther = "Phase Shift on %s!",
|
|
bar_phaseShiftedExpires = "Phase Shift - KILL NetherWalkers",
|
|
}
|
|
local icon = {phaseShifted = "Spell_Shadow_AbominationExplosion", overflowingHatred = "Spell_Fire_Incinerate"}
|
|
local m = OctoBossMods:NewModule("Sanv Tas'dal", {npcs = {59981, 61985}, displayName = "Sanv Tas'dal", zone = "Karazhan"})
|
|
function m:PhaseShifted(_, _, dstGUID, dstName)
|
|
if not dstName then return end
|
|
if dstGUID == UnitGUID("player") then
|
|
self:Message(L.msg_phaseShiftedYou, "Important", true, "Alarm")
|
|
self:WarningSign(icon.phaseShifted, 5, true, "KILL NetherWalkers")
|
|
self:Bar(L.bar_phaseShiftedExpires, 25, icon.phaseShifted, true, "Yellow")
|
|
else
|
|
self:Message(format(L.msg_phaseShiftedOther, dstName), "Important")
|
|
end
|
|
end
|
|
function m:PhaseShiftedFade(_, _, dstGUID)
|
|
if dstGUID ~= UnitGUID("player") then return end
|
|
self:RemoveBar(L.bar_phaseShiftedExpires)
|
|
self:RemoveWarningSign(icon.phaseShifted)
|
|
end
|
|
function m:Hatred()
|
|
self:Message(L.msg_overflowingHatred, "Important", false, "Alarm")
|
|
self:Bar(L.bar_overflowingHatredCast, 6, icon.overflowingHatred, true, "Red")
|
|
end
|
|
m.events = {
|
|
SPELL_AURA_APPLIED = {[51197] = "PhaseShifted", [51200] = "PhaseShifted"},
|
|
SPELL_AURA_REMOVED = {[51197] = "PhaseShiftedFade", [51200] = "PhaseShiftedFade"},
|
|
SPELL_CAST_START = {[51204] = "Hatred"},
|
|
}
|