With 3.0 comes changes to aura processing, and i've run into a problem. This relates only to querying auras on "player".
Pre-LK UnitBuff would NOT return "duration" for spells on "player" if those spells were not cast by the player (it would return nil, or zero, dont recall which). It did however return the "TimeLeft", so it was still possible to display remaining time for buff mods.
On the current build (8770) the new Aura functions UnitAura/UnitBuff now return "duration" for all spells. I now have a problem detecting if these spells were cast by the player themselves, or by another player.
Does anyone know of any other way i can query for this information without tracking the combatlog for the caster?
From some quick experimentation I have found that the 8th return of UnitBuff et al. seems to be a "cast by me" indicator (1 if cast by the player, nil if from another source). Duration and time left return accurate values for all auras; timeless/"until canceled" auras return 0 for both.
I did test that 8th return in 8770 but it was actually the old untilCancelled back then, in fact i seem to recall it being the same in 8788 too.
There I was thinking my posts in the eu forum were for naught!
- auraType comes from the old UnitDebuff, so it is always nil for buffs.
- duration and expirationTime are always zero for buffs and debuffs that don't have a duration, by example: auras, hunter aspects, mounts, zone-wide buffs, ...
I think the two zone-wides you listed are plainly borked and you should consider isMine to be reliable except for those two.
I have a similar problem. I want to know whom an aura is from. In the combat log it says things like "danielbarron gains vangelis's retribution aura". But without parsing the combat log how can I tell if a paladin has cast his own aura or not?
In vent I have to say things like "whoever has the fire aura please change it to shadow" as everyone has the aura and it's not possible to see who's it is.
And the aura checking in RBS is useless now unless I can work out if all paladins have an aura.