Disable the range updating for buttons without a range.

This commit is contained in:
Hendrik Leppkes
2009-05-21 11:55:33 +02:00
parent be945add01
commit e8f070836e
+5
View File
@@ -273,6 +273,11 @@ local function updateFunc(self)
control:RunFor(frame, frame:GetAttribute("UpdateAutoAssist"))
]])
end
if not ActionHasRange(self.action) then
self.rangeTimer = nil
self.outOfRange = nil
end
end
hooksecurefunc("ActionButton_Update", updateFunc)