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.

54 lines
1.3 KiB

--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Oshir", 1195, 1237)
if not mod then return end
mod:RegisterEnableMob(79852)
mod.engageId = 1750
mod.respawnTime = 33
--------------------------------------------------------------------------------
-- Localization
--
local L = mod:GetLocale()
if L then
L.freed = "Freed after %.1f sec!"
end
--------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
{162415, "ICON"}, -- Time to Feed
}
end
function mod:OnBossEnable()
self:Log("SPELL_AURA_APPLIED", "TimeToFeed", 162415)
self:Log("SPELL_AURA_REMOVED", "TimeToFeedOver", 162415)
end
--------------------------------------------------------------------------------
-- Event Handlers
--
do
local t = 0
function mod:TimeToFeed(args)
t = GetTime()
self:TargetMessageOld(args.spellId, args.destName, "red", "alarm")
self:TargetBar(args.spellId, 20, args.destName)
self:PrimaryIcon(args.spellId, args.destName)
end
function mod:TimeToFeedOver(args)
self:MessageOld(args.spellId, "green", nil, L.freed:format(GetTime()-t))
self:PrimaryIcon(args.spellId)
self:StopBar(args.spellId, args.destName)
end
end