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?