To check how many auras a unit have
thinking about show bolstering buff as stack on nameplate.
for example, is there any way to count how many auras i got?
should cache it by myself ?_?
You can try working with default filters. You can use multiple filter options at once like "HELPFUL|PLAYER"
HELPFUL - buffs.
HARMFUL - debuffs.
PLAYER - auras that were applied by the player.
RAID - auras that can be applied (if HELPFUL) or dispelled (if HARMFUL) by the player.
CANCELABLE - buffs that can be removed (such as by right-clicking or using the /cancelaura command)
NOT_CANCELABLE - buffs that cannot be removed
INCLUDE_NAME_PLATE_ONLY - includes some specific auras which Blizzard decides that they should appear on nameplates
Here is the Blizzard nameplate filter function:
If the default filters get you nowhere you need a custom filter. The max number of debuffs available is 40. You will probably need two loops one for buffs and one for debuffs and you need to check each one against a certain spellid or spellname and on top you can match other stuff like who casted the aura etc.
Here is how oUF provides custom filters:
oUF supports nameplates and thus allows you to work with a custom filter on nameplate units.
If you are using any other nameplate addon you need it to support aura white/blacklisting of some sort.
ty for reply!
here's the filter, fallow blizzard's nameplate
as 40 max available, i'm thinking about show bolstering buff as 1 icon only, and show how many bolstering that unit got as buff stack, and......show "6+" if over 6 bolstering buff.
1. need a custom filter (looks like already have)
2. only show 1 buff. and need to count how many bolstering buff the unit have
> thinking how to do
3. show numbers as stack
I use this code, i try rewrite to your koncept. Maybe help you. Sry for eng.
Save dname in function UpdateAuraIcon
|All times are GMT -6. The time now is 11:18 PM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI