View Single Post
08/02/17, 10:54 PM   #2
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
something like this?
lua Code:
  1. local function CheckBuffs(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, abilityId)
  2.     for i = 1,GetNumBuffs("player") do
  3.         local _abilityId = select(11, GetUnitBuffInfo("player", i))
  4.         if(_abilityId == abilityId) then
  5.             -- do something
  6.         end
  7.     end
  8. end
  9. EVENT_MANAGER:RegisterForEvent(addon.name, EVENT_EFFECT_CHANGED, CheckBuffs)
?

Last edited by Scootworks : 08/02/17 at 11:02 PM.
  Reply With Quote