-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add group unit options #578
Conversation
This is a little under-cooked still actually |
Okay, done much more testing on this now and fixed the issue. |
WeakAuras/BuffTrigger.lua
Outdated
@@ -688,7 +697,7 @@ function WeakAuras.ScanAuras(unit) | |||
-- Query count from aura cache | |||
local aura_count, max = aura_object:GetNumber(id, triggernum, data), aura_object:GetMaxNumber(); | |||
local satisfies_count = data.group_count(aura_count, max); | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
WeakAuras/Types.lua
Outdated
@@ -1302,6 +1302,13 @@ WeakAuras.group_aura_stack_info_types = { | |||
stack = L["Aura Stack"] | |||
} | |||
|
|||
WeakAuras.group_roles = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already have role_types, can we re-use and maybe add "any" to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that but we don't actually want it to show "any" in the load conditions.
WeakAurasOptions/BuffTrigger.lua
Outdated
@@ -756,6 +756,20 @@ function WeakAuras.GetBuffTriggerOptions(data, trigger) | |||
end, | |||
values = group_aura_stack_info_types | |||
}, | |||
ignoreSelf = { | |||
type = "toggle", | |||
name = "Ignore player", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = L["Ignore self"],
WeakAurasOptions/BuffTrigger.lua
Outdated
}, | ||
group_role = { | ||
type = "select", | ||
name = "Group Member Role", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L["Group Member Role"],
Also fix IgnoreSelf interaction with Group Member Count
The goal is to provide options in the group=unit settings for users to specify raiding roles to watch and also exclude themselves from results.
The use case I had in mind for this was be to track "tank swap" debuffs on other tanks. These settings would let users only see debuffs on other tanks which is a very common thing to want to see without a very satisfactory method currently.
Currently while raiding as tank I would always focus my cotank and use the focus unit for tank monitoring Auras. This gets messy when there are 3 tanks and removes any other uses I might have for my focus. Other people have made complex TSU auras to track the other tank.
Of course I expect that the setting could be useful for other stuff too.