SpellActivationOverlay

SpellActivationOverlay

3M Downloads

Execute-like buttons not glowing

ennvina opened this issue · 0 comments

commented

There are many situations where buttons of abilities like Execute (e.g. Hammer or Wrath, Kill Shot…) do not glow as intended. This is mostly due to the Global Cooldown (GCD) kicking in and disabling the buttons for a short period of time.

For Execute-like buttons we can simply check if the target’s HP is low and if the target is hostile and/or can be attacked.

It requires tracking the following events:

Target’s hostility/attackability can be checked with UnitCanAttack.

Suggestion: add a new script called execute.lua in the components folder and give it a new method called SAO.RegisterExecute which has an aura name as parameter, just like SAO.RegisterCounter in counter.lua uses an existing aura name.