You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.4 KiB
64 lines
1.4 KiB
|
4 years ago
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Module Declaration
|
||
|
|
--
|
||
|
|
|
||
|
|
local mod, CL = BigWigs:NewBoss("Inquisitor Gnshal", 2212)
|
||
|
|
if not mod then return end
|
||
|
|
mod:RegisterEnableMob(156161)
|
||
|
|
mod:SetAllowWin(true)
|
||
|
|
mod.engageId = 2371
|
||
|
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Localization
|
||
|
|
--
|
||
|
|
|
||
|
|
local L = mod:GetLocale()
|
||
|
|
if L then
|
||
|
|
L.inquisitor_gnshal = "Inquisitor Gnshal"
|
||
|
|
end
|
||
|
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Initialization
|
||
|
|
--
|
||
|
|
|
||
|
|
function mod:GetOptions()
|
||
|
|
return {
|
||
|
|
{307863, "SAY"}, -- Void Torrent
|
||
|
|
304976, -- Cries of the Void
|
||
|
|
}
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:OnRegister()
|
||
|
|
self.displayName = L.inquisitor_gnshal
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:OnBossEnable()
|
||
|
|
self:Log("SPELL_CAST_START", "VoidTorrent", 307863)
|
||
|
|
self:Log("SPELL_CAST_START", "CriesOfTheVoid", 304976)
|
||
|
|
end
|
||
|
|
|
||
|
|
--------------------------------------------------------------------------------
|
||
|
|
-- Event Handlers
|
||
|
|
--
|
||
|
|
|
||
|
|
do
|
||
|
|
local function printTarget(self, name, guid)
|
||
|
|
self:TargetMessage(307863, "orange", name)
|
||
|
|
self:PlaySound(307863, "alarm", nil, name)
|
||
|
|
if self:Me(guid) then
|
||
|
|
self:Say(307863)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:VoidTorrent(args)
|
||
|
|
self:GetUnitTarget(printTarget, 0.4, args.sourceGUID)
|
||
|
|
self:Bar(args.spellId, 15.8)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function mod:CriesOfTheVoid(args)
|
||
|
|
self:Message(args.spellId, "red")
|
||
|
|
self:PlaySound(args.spellId, "warning")
|
||
|
|
end
|