All-
I've been working to better understand what the different types of auras are. Mainly because once you get a certain talent, generally you will have a hidden/passive (not sure the right word here) aura with the exact same name as the aura which procs, which is kind of annoying.
Here is what I've determined so far:
Code:
typedef struct WoWAura {
GUID guid;
UInt32 entryID;
UInt32 bytes;
UInt32 duration;
UInt32 expiration;
UInt32 unk1;
UInt32 unk2;
UInt32 unk3;
} WoWAura;
- (UInt32)stacks {
return (([self bytes] >> 24) & 0xFF);
}
- (UInt32)level {
return (([self bytes] >> 16) & 0xFF);
}
- (BOOL)isDebuff {
return (([self bytes] >> 7) & 1);
}
- (BOOL)isActive {
return (([self bytes] >> 5) & 1);
}
- (BOOL)isPassive {
return (([self bytes] >> 4) & 1) && ![self isActive];
}
- (BOOL)isHidden {
return (([self bytes] >> 7) & 1);
}
I believe these to be 100% accurate based on my testing, but of course I could be wrong in a few places. Let me know if you see any issues. Enjoy!
~ Tanaris