I was working on this since few days and finally managed to find what I was looking for.
Here is the function I use to know if my target has a buff or debuff.
The code is messy, I just wrote this in 2 minutes but it's working. Up to you to change it.
I know it could be done by using the HasAura LUA function but I didnt want to use that since I quite suck at this...
So here it is :
TargetToCheck is the Target Offset (the CurObj) you want to look the buff.
BuffToCheck is the buff you want to check (for example 48266 is the buff for Blood Presence Blood Presence - Thottbot: World of Warcraft)
Code:
public static Boolean HasAura(UInt32 TargetToCheck, int BuffToCheck)
{
UInt32 Buff = 1;
UInt32 Adress = TargetToCheck + 0xEBC;
while(Buff != 0)
{
Buff = wow.ReadUInt(Adress);
if (Buff == BuffToCheck)
return true;
Adress = Adress + 0x4;
}
return false;
}
Hope it will help some of you.