39 lines
2.1 KiB
Lua
39 lines
2.1 KiB
Lua
-- Gahz'ranka (Octo BigWigs Raids/ZG/Gahzranka.lua), native server events.
|
|
-- boss_gahzranka.cpp: Frost Breath 16099 (2 s cast, mana burn), Massive Geyser 22421 (knock-up, aggro drop), Gahz'ranka Slam 24326.
|
|
local GAHZ = 15114
|
|
local L = {
|
|
bar_frostbreathCast = "FrostBreath Dmg+ManaBurn", msg_frostbreathCast = "Frost Breath, Damage + Mana Burn",
|
|
bar_frostbreathCd = "Frost Breath CD", msg_frostBreathYou = "You got Mana Burned by Frost Breath!",
|
|
bar_geyserCast = "knockUP - Aggro Drop", msg_geyserCast = "knockUP - Aggro Drop", bar_geyserCd = "knockUP AggroDrop CD",
|
|
bar_slam = "knockBACK - CD",
|
|
}
|
|
local timer = {frostbreathCast = 2, frostbreathCd = 7, geyserCast = 1.5, geyserCd = 19, slam = 15}
|
|
local icon = {frostbreath = "spell_frost_frostnova", geyser = "spell_frost_summonwaterelemental", slam = "ability_devour"}
|
|
local m = OctoBossMods:NewModule("Gahz'ranka", {npcs = {GAHZ}, displayName = "Gahz'ranka", zone = "Zul'Gurub"})
|
|
function m:Frostbreath()
|
|
self:RemoveBar(L.bar_frostbreathCd)
|
|
self:Bar(L.bar_frostbreathCast, timer.frostbreathCast, icon.frostbreath, true, "Blue")
|
|
self:Message(L.msg_frostbreathCast, "Attention")
|
|
self:DelayedBar(timer.frostbreathCast, L.bar_frostbreathCd, timer.frostbreathCd, icon.frostbreath, true, "Black")
|
|
end
|
|
function m:FrostbreathYou(_, _, dstGUID)
|
|
if dstGUID ~= UnitGUID("player") or UnitPowerType("player") ~= 0 or not self:Throttle("breathYou", 2) then return end
|
|
self:WarningSign(icon.frostbreath, 0.7)
|
|
self:Message(L.msg_frostBreathYou, "Attention", false, "Info")
|
|
end
|
|
function m:GeyserBegin()
|
|
self:Bar(L.bar_geyserCast, timer.geyserCast, icon.geyser, true, "Red")
|
|
self:Message(L.msg_geyserCast, "Urgent")
|
|
end
|
|
function m:GeyserCast()
|
|
if self:Throttle("geyser", 3) then self:Bar(L.bar_geyserCd, timer.geyserCd, icon.geyser, true, "White") end
|
|
end
|
|
function m:Slam()
|
|
if self:Throttle("slam", 3) then self:Bar(L.bar_slam, timer.slam, icon.slam, true, "Red") end
|
|
end
|
|
m.events = {
|
|
SPELL_CAST_START = {[16099] = "Frostbreath", [22421] = "GeyserBegin"},
|
|
SPELL_CAST_SUCCESS = {[22421] = "GeyserCast", [24326] = "Slam"},
|
|
SPELL_DAMAGE = {[16099] = "FrostbreathYou"},
|
|
}
|