fix a bug in button code
This commit is contained in:
+1
-1
@@ -438,7 +438,7 @@ function Button:EventHandler(event, arg1)
|
|||||||
self:StartFlash()
|
self:StartFlash()
|
||||||
end
|
end
|
||||||
elseif ( event == "STOP_AUTOREPEAT_SPELL" ) then
|
elseif ( event == "STOP_AUTOREPEAT_SPELL" ) then
|
||||||
if ( self:IsFlashing() and not IsAttackAction(self.action) ) then
|
if ( self.flashing == 1 and not IsAttackAction(self.action) ) then
|
||||||
self:StopFlash()
|
self:StopFlash()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+2
-2
@@ -105,8 +105,8 @@ function PetButtonPrototype:Update()
|
|||||||
self.tooltipName = _G[name]
|
self.tooltipName = _G[name]
|
||||||
end
|
end
|
||||||
|
|
||||||
self.isToken = isToken;
|
self.isToken = isToken
|
||||||
self.tooltipSubtext = subtext;
|
self.tooltipSubtext = subtext
|
||||||
self:SetChecked(isActive and 1 or 0)
|
self:SetChecked(isActive and 1 or 0)
|
||||||
if autoCastAllowed then
|
if autoCastAllowed then
|
||||||
self.autocastable:Show()
|
self.autocastable:Show()
|
||||||
|
|||||||
Reference in New Issue
Block a user