Premade Groups Filter

Premade Groups Filter

12M Downloads

Tank OR Healer >0

dawn-star opened this issue ยท 2 comments

commented

I'm not sure if this is already possible with existing expressions, great if someone could advise on how to do it if so.

I'd love to be able to see only groups that have a Tank OR a Healer in the group already, would that be doable?

commented

Sure! I assume that you mean an exclusive 'or' (either tank or heal but not both).

If you are targeting dungeon groups, you could use the fact that there is only one heal and one tank at max and use:

tanks + heals == 1

This will show only groups where there is one heal or one tank, but not both and also not zero of them.

More complicated, but equivalent would be:

(( tanks == 0 and heals == 1 ) or (tanks == 1 and heals == 0 ))

Braces are optional in this case as and comes before or just like multiplication before addition.

For raid groups, this is getting a bit more difficult. Usually there are two tanks, but there could be more healers.
You start with the following and make it more complicated as you need:

( tanks == 1 or ( tanks == 0 and heals >= 1 ))

This means either exactly one tank or at least one heal.

commented

(( tanks == 0 and heals == 1 ) or (tanks == 1 and heals == 0 ))

This is exactly what I was looking for, thank you so much!