Lib/ActionButton: show cd & charges for spells with 1 charge
This commit is contained in:
parent
8baf704450
commit
40fb3f51e0
1 changed files with 2 additions and 2 deletions
|
|
@ -1089,7 +1089,7 @@ function UpdateCount(self)
|
|||
end
|
||||
else
|
||||
local charges, maxCharges = self:GetCharges()
|
||||
if charges and maxCharges and maxCharges > 1 then
|
||||
if charges and maxCharges and maxCharges > 0 then
|
||||
self.count:SetText(charges)
|
||||
else
|
||||
self.count:SetText("")
|
||||
|
|
@ -1101,7 +1101,7 @@ function UpdateCooldown(self)
|
|||
local start, duration, enable = self:GetCooldown()
|
||||
local charges, maxCharges, chargeStart, chargeDuration = self:GetCharges()
|
||||
local hasCharges = false
|
||||
if charges and maxCharges and maxCharges > 1 and charges < maxCharges then
|
||||
if charges and maxCharges and maxCharges > 0 and charges < maxCharges then
|
||||
hasCharges = charges > 0
|
||||
start, duration, enable = chargeStart, chargeDuration, 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue