addons/battle/battle.lua: abilities on lockdown are shown as active
bloerwald opened this issue ยท 0 comments
Which software were you running?
- Addon version name: 10.1.1
- Client used: Mainline 10.1.7
Please describe the bug.
The ability icons in battle do not correctly reflect an ability on lockdown (not cooldown).
Please describe how to reproduce it.
- Use pet with Nevermore.
- Fight a pet that's slower than yours and use Nevermore.
- The ability the enemy uses this turn will be put on a 5 round lockdown.
- See enabled icon while it should be disabled.
The second ability is not usable and should thus be disabled with a 4 round lockdown.
Fix?
In Battle:GetAbility(i)
, check the third return value of self:GetAbilityState(i)
which is lockdown
, treat it like cooldown
. The scripts addon just takes max(cooldown, lockdown)
.