Skip to content

Commit

Permalink
Cast trigger: Disable various checks for non-casting trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
InfusOnWoW authored and Stanzilla committed May 7, 2023
1 parent 7ae7ccf commit 975e9bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8582,7 +8582,7 @@ Private.event_prototypes = {
name = "empowered",
display = L["Empowered"],
type = "tristate",
enable = WeakAuras.IsRetail(),
enable = WeakAuras.IsRetail() and function(trigger) return not trigger.use_inverse end or false,
store = true,
conditionType = "bool",
hidden = not WeakAuras.IsRetail()
Expand All @@ -8591,15 +8591,15 @@ Private.event_prototypes = {
name = "showChargedDuration",
display = L["Show charged duration for empowered casts"],
type = "toggle",
enable = WeakAuras.IsRetail(),
enable = WeakAuras.IsRetail() and function(trigger) return not trigger.use_inverse end or false,
hidden = not WeakAuras.IsRetail(),
reloadOptions = true,
},
{
name = "stage",
display = L["Current Stage"],
type = "number",
enable = WeakAuras.IsRetail(),
enable = WeakAuras.IsRetail() and function(trigger) return not trigger.use_inverse end or false,
store = true,
conditionType = "number",
hidden = not WeakAuras.IsRetail()
Expand All @@ -8608,7 +8608,7 @@ Private.event_prototypes = {
name = "stageTotal",
display = L["Total Stages"],
type = "number",
enable = WeakAuras.IsRetail(),
enable = WeakAuras.IsRetail() and function(trigger) return not trigger.use_inverse end or false,
store = true,
conditionType = "number",
hidden = not WeakAuras.IsRetail()
Expand All @@ -8619,7 +8619,7 @@ Private.event_prototypes = {
hidden = true,
init = "stage == stageTotal",
test = "true",
enable = WeakAuras.IsRetail(),
enable = WeakAuras.IsRetail() and function(trigger) return not trigger.use_inverse end or false,
store = true,
type = "toggle",
conditionType = "bool",
Expand Down Expand Up @@ -8882,7 +8882,7 @@ Private.event_prototypes = {
type = "toggle",
test = "true",
enable = function(trigger)
return trigger.unit == "player"
return trigger.unit == "player" and not trigger.use_inverse
end,
reloadOptions = true
},
Expand Down

0 comments on commit 975e9bf

Please sign in to comment.