40 lines
957 B
Lua
40 lines
957 B
Lua
local mod = DBM:NewMod("Steamrigger", "DBM-Party-BC", 6)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
|
mod:SetCreatureID(17796)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEvents(
|
|
"SPELL_AURA_APPLIED",
|
|
"CHAT_MSG_MONSTER_YELL"
|
|
)
|
|
|
|
local WarnSummon = mod:NewAnnounce("WarnSummon")
|
|
local WarnNet = mod:NewTargetAnnounce(35107)
|
|
local timerNet = mod:NewTargetTimer(6, 35107)
|
|
-- local timerNextAdds = mod:NewNextTimer(10, 32371) Spawns at 70/50/25% health
|
|
|
|
local enrageTimer = mod:NewBerserkTimer(300)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
if mod:IsDifficulty("heroic5") then
|
|
enrageTimer:Start(-delay)
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args:IsSpellID(35107) then
|
|
WarnNet:Show(args.destName)
|
|
timerNet:Start(args.destName)
|
|
end
|
|
end
|
|
|
|
function mod:CHAT_MSG_MONSTER_YELL(msg)
|
|
if msg == L.Mechs then -- Adds
|
|
WarnSummon:Show()
|
|
end
|
|
end
|
|
|
|
-- 31485 - Super Shrink Ray |