Disable the range updating for buttons without a range.
This commit is contained in:
@@ -273,6 +273,11 @@ local function updateFunc(self)
|
|||||||
control:RunFor(frame, frame:GetAttribute("UpdateAutoAssist"))
|
control:RunFor(frame, frame:GetAttribute("UpdateAutoAssist"))
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not ActionHasRange(self.action) then
|
||||||
|
self.rangeTimer = nil
|
||||||
|
self.outOfRange = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
hooksecurefunc("ActionButton_Update", updateFunc)
|
hooksecurefunc("ActionButton_Update", updateFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user