Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-17-08, 12:47 PM   #1
Silmano
A Murloc Raider
 
Silmano's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 9
Filtering buff stacks

I was wondering how can I filter the combat log to know how many stacks of a new buff I have.

Code:
function Test:CombatLogEvent(a, timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, spellID, spellName)
    if event=="SPELL_AURA_APPLIED" and destFlags==0x511 then
        if spellName=="Maelstrom Weapon" then
            -- Do something
        end;
    end;
end;
What I have at the moment "does something" when the buff comes up, but for example Maelstrom Weapon can stack 5 times, but this only works for the 1st one.

Any clues on how can I count the rest of procs or how can I know which proc I'm in?
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Filtering buff stacks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off