Quantcast
Filtering buff stacks - WoWInterface
Thread Tools Display Modes
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
10-18-08, 08:01 AM   #2
lieandswell
A Cyclonian
 
lieandswell's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 45
Originally Posted by Silmano View Post
I was wondering how can I filter the combat log to know how many stacks of a new buff I have.
The combat log events SPELL_AURA_APPLIED_DOSE and SPELL_AURA_REMOVED_DOSE will tell you when when the stack gets bigger and smaller, and by how much. The UnitAura() function will tell you how big the stack is, among other things. WoWWiki has the details.
  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