I'm trying to do it in a plugin I am working on
I was messing with a lot of things but none of em worked to find players debuffs, I have
foreach(WoWPlayer Player in ObjectManager.ObjectList) {
// Friendly, InLineOfSight, HasDebuff
if (Player.Reaction == Reaction.Friendly) {
Logging.Write("[MyPlugin] Player Name: " + Player.Name);
//LuaEventsId.UNIT_AURA
}
}
to interate through characters, haven't fully tested it yet if WoWPlayer is all players near character or if its only localplayer and if it is I will change that to wowunit.
How would I run a whole lua function or use the libraries to return all of the debuffs a player has