WoWInterface SVN RaidWatch2

[/] [trunk/] [RaidWatch_Coliseum/] [Champions.lua] - Rev 22

Compare with Previous | Blame | View Log

local mod = RW:Boss("Faction Champions", "Crusaders Coliseum")
local L

mod.BossIcon = [[Interface\Icons\achievement_arena_5v5_3]]
mod.SupressGlobalHealthFrames = true

local tHellfire
local wHellfire

function mod:OnRegister()
        
        L = self:RegisterLocale(self:GetName(), "enUS", true)
        if L then
                L.YellVictory = "That was just a taste of what the future brings. FOR THE HORDE!"
        end
        
        L = self:GetLocale()
        mod.L = L
        
        self:SetTrigger(
                -- Horde
                34441, 34444, 34445, 34447, 34448, 34449, 34450, 34451, 34453, 34454, 34455, 34456, 34458, 34459,
                -- Alliance
                34460, 34461, 34463, 34465, 34466, 34467, 34468, 34469, 34470, 34471, 34472, 34473, 34474, 34475
        )
        self:SetWin(L.YellVictory)
        
        tHellfire = self:CastTimer(15, 65816)
        wHellfire = self:RunawayWarning(65816)
end

function mod:OnEngage()
        self:Track("Hellfire", 65816, 68145, 68146, 68147)
end

function mod:Hellfire(event, args)
        if event == "SPELL_AURA_APPLIED" then
                tHellfire:Start()
        elseif event == "SPELL_AURA_REMOVED" then
                tHellfire:Stop()
        elseif event == "SPELL_DAMAGE" then
                if args:IsPlayer() then
                        wHellfire:Show()
                end
        end
end

Compare with Previous | Blame