Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 286ef13

Browse files
committed
Try to fix #337
1 parent 4e484c1 commit 286ef13

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Objects/BUTTON.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ function BUTTON:CancelCooldownTimer(stopAnimation)
165165
end
166166

167167
self:UpdateObjectVisibility()
168+
self:UpdateUsable()
168169

169170
end
170171

@@ -744,9 +745,9 @@ function BUTTON:UpdateUsableSpell()
744745
if notEnoughMana then
745746
self.elements.IconFrameIcon:SetVertexColor(self.manacolor[1], self.manacolor[2], self.manacolor[3])
746747
elseif isUsable then
747-
if self.rangeInd and IsSpellInRange(self.spell, self.unit) == 0 then
748+
if self.rangeInd and IsSpellInRange(self.spell, self.unit)==0 then
748749
self.elements.IconFrameIcon:SetVertexColor(self.rangecolor[1], self.rangecolor[2], self.rangecolor[3])
749-
elseif NeuronSpellCache[self.spell:lower()] and NeuronSpellCache[self.spell:lower()].index and self.rangeInd and IsSpellInRange(NeuronSpellCache[self.spell:lower()].index,"spell", self.unit) == 0 then
750+
elseif NeuronSpellCache[self.spell:lower()] and NeuronSpellCache[self.spell:lower()].index and self.rangeInd and IsSpellInRange(NeuronSpellCache[self.spell:lower()].index,"spell", self.unit)==0 then
750751
self.elements.IconFrameIcon:SetVertexColor(self.rangecolor[1], self.rangecolor[2], self.rangecolor[3])
751752
else
752753
self.elements.IconFrameIcon:SetVertexColor(1.0, 1.0, 1.0)

0 commit comments

Comments
 (0)