Quantcast
WoWInterface - View Single Post - Filtering buff stacks
View Single Post
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