diff PetActionButton.lua @ 284:499ca4edf033 1.1 beta 8

Fixed Pet action buttons not accepting click-hold drags
author Flick
date Sat, 11 Jun 2011 10:54:52 -0700
parents 2098dba4baf5
children 276165a0e860
line wrap: on
line diff
--- a/PetActionButton.lua	Thu May 12 17:16:43 2011 -0700
+++ b/PetActionButton.lua	Sat Jun 11 10:54:52 2011 -0700
@@ -31,10 +31,11 @@
 
 local _onReceiveDrag = -- function(self, button, kind, value, ...)
 [[
-  if kind then -- pet spells on the cursor return nil from GetCursorInfo(), which is very strange
+  if kind == "petaction" then
+    return "petaction", self:GetAttribute("action")
+  else
     return kind, value, ...
   end
-  return "petaction", self:GetAttribute("action")
 ]]
 
 --