WeakAuras

WeakAuras

206M Downloads

Spell Trigger - Show GCD | Condition - Charges == 0 inconsistency

anaseskyrider opened this issue ยท 0 comments

commented

Description

When checking for charges == 0 on a spell using conditions, the expected results will change depending on whether or not the spell actually has charges. When you enable tracking the GCD on the spell trigger, a spell with no charges will return true on charges == 0 during the GCD, but on a spell with charges, it will always react according to its actual charges.

While there is a difference between spells with no charges and spells with charges in the WoW code, I was under the impression that WeakAuras generalizes the charges to something more universal, such that spells with no charges are treated like spells with 1 charge.

WeakAuras Version

WeakAuras 3.2.3

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

No response

Reproduction Steps

  1. Create an icon.
  2. Add a Spell - Cooldown/Charges/Count trigger.
  3. Under the trigger's Extra Options, enable Show Global Cooldown.
  4. Add a condition: Charges = 0 that desaturates the icon.
  5. Set the spell trigger to a spell without charges, then trigger the GCD.
  6. Set the spell trigger to a spell with charges, then trigger the GCD.

Last Good Version

No response

Screenshots

No response

Export String

No response