WoWInterface SVN RaidWatch2

[/] [trunk/] [RaidWatch_PartyWOTLK/] [PitOfsaron/] [ForgemasterGarfrost.lua] - Rev 22

Compare with Previous | Blame | View Log

local mod = RW:Boss("Forgemaster Garfrost", "Party - WOTLK", "Pit of Saron")
local L

mod.type = "party"
mod:SetPackIcon([[Interface\Icons\Spell_Holy_ProclaimChampion]])
mod.BossIcon = [[Interface\Icons\achievement_boss_forgemaster]]
mod.SubCatIcon = [[Interface\Icons\achievement_dungeon_icecrown_pitofsaron]]

---------------------------
-- Variablese

local wThrow, wFreeze
local mThrow, mFreeze
local iThrow, iFreeze

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

function mod:OnRegister()
        L = mod:RegisterLocale(self:GetName(), "enUS", true)
        if L then
        end
        L = mod:GetLocale()
        mod.L = L
        
        self:SetTrigger(36494)
        self:SetWin()
        
        tStompCD = self:CDTimer(20, 68771)
        tFreeze = self:DurTargetTimer(10, 70381)
        
        mThrow = self:TargetMessage(68788)
        mFreeze = self:TargetMessage(70381)
        
        wThrow = self:RunawayWarning(68788)
        wFreeze = self:Warning(70381)
        
        iThrow = self:Icon("SKULL", 68788, true, 5)
        iFreeze = self:Icon("CROSS", 70381)
end

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

function mod:OnEngage(trigger)
        self:Track("Stomp", 68771)
        self:Track("Throw", 68788)
        self:Track("Freeze", 70381)

        tStompCD:Start()
end

function mod:Stomp(event, args)
        if event == "SPELL_CAST_SUCCESS" then
                tStompCD:Start()
        end
end

function mod:Throw(event, args)
        if event == "SPELL_CAST_START" then
                if args:IsPlayer() then
                        wThrow:Show()
                end
                --mThrow:Show(args.dName)
                --iThrow:Show(args.dName)
        end
end

function mod:Freeze(event, args)
        if event == "SPELL_AURA_APPLIED" then
                if args:IsPlayer() then
                        wFreeze:Show()
                end
                iFreeze:Show(args.dName)
                mFreeze:Show(args.dName)
                tFreeze:Start(args.dName)
                
        elseif event == "SPELL_AURA_REMOVED" then
                iFreeze:Hide()
        end
end

Compare with Previous | Blame