From e8f070836eec9a3776a080da26530a7150e9ba45 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 21 May 2009 11:55:33 +0200 Subject: [PATCH] Disable the range updating for buttons without a range. --- ActionButton.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ActionButton.lua b/ActionButton.lua index 12a66c0..6f819df 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -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)