WoWInterface SVN RaidWatch2

[/] [trunk/] [RaidWatch_PartyWOTLK/] [ForgeOfSouls/] [Bronjahm.lua] - Rev 22

Compare with Previous | Blame | View Log

local mod = RW:Boss("Bronjahm", "Party - WOTLK", "The Forge of Souls")
local L

mod.type = "party"

mod.BossIcon = [[Interface\Icons\achievement_boss_bronjahm]]
mod.SubCatIcon = [[Interface\Icons\achievement_dungeon_icecrown_forgeofsouls]]


---------------------------
-- Variables
local tSoulstormCast, wSoulstorm
local tCorruptDur, mCorrupt, iCorrupt

---------------------------
-- Init

function mod:OnRegister()
        L = mod:RegisterLocale(self:GetName(), "enUS", true)
        if L then
        end
        L = mod:GetLocale()
        self.L = L
        
        self:SetTrigger(36497)
        self:SetWin()
        
        tSoulstormCast  = self:CastTimer(68872)
        tCorruptDur             = self:DurTargetTimer(4, 68839)
        
        wSoulstorm              = self:RunawayWarning(68872)
        
        mCorrupt                = self:TargetMessage(68839)
        
        iCorrupt                = self:Icon("SKULL", 68839, false, 4)
end

---------------------------
-- Locals

---------------------------
-- Start

function mod:OnEngage(trigger)
        self:Track("Soulstorm", 68872)
        self:Track("Corrupt", 68839)
end

function mod:Soulstorm(event, args)
        if event == "SPELL_CAST_START" then
                wSoulstorm:Show()
                tSoulstormCast:Start()
        end
end

function mod:Corrupt(event, args)
        if event == "SPELL_AURA_APPLIED" then
                iCorrupt:Show(args.dName)
                mCorrupt:Show(args.dName)
                tCorruptDur:Start(args.dName)
        end
end

Compare with Previous | Blame