fix a bug in button code

This commit is contained in:
Hendrik Leppkes
2008-03-03 12:05:45 +00:00
parent 3ae640802d
commit 4fe87b8eeb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ function Button:EventHandler(event, arg1)
self:StartFlash()
end
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()
end
end