This repository was archived by the owner on Jan 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ function BUTTON:CancelCooldownTimer(stopAnimation)
165165 end
166166
167167 self :UpdateObjectVisibility ()
168+ self :UpdateUsable ()
168169
169170end
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 )
You can’t perform that action at this time.
0 commit comments