View Single Post
11/25/17, 04:01 PM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Never used the event so far so sorry if I understand something wrong.

Are you able to detemrine the name of the caster from the event?
What is "sourceName" giving you as the information?

Maybe a table key like this would help:
Lua Code:
  1. AuraMastery.activeCombatEffects[sourceName .. "|" .. targetName] = {sourceName, targetName, endTime}

Or you'll just iterate over the entries with

Lua Code:
  1. for index, buffData in iparis(AuraMastery.activeCombatEffects) do
  2. if buffData.sourceName == currentFadedOrRefreshedBuff.sourcename and buffData.targetName == currentFadedOrRefreshedBuff.targetName then
  3. --Faded or refreshed buff of DK n (sourceName)
  4. end
  5. end
  Reply With Quote