changeset 55:c416c9e6d212

- fixed lua error that occurs when a pet skill picked up from the addon buttons is dropped
author Nenue
date Sun, 21 Aug 2016 03:33:39 -0400
parents a545933ddf3d
children 2a95f4010c5a
files SkeletonKey/KeyButton.lua
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/SkeletonKey/KeyButton.lua	Sun Aug 21 03:13:32 2016 -0400
+++ b/SkeletonKey/KeyButton.lua	Sun Aug 21 03:33:39 2016 -0400
@@ -130,6 +130,7 @@
         pickupBook = CURSOR_BOOKTYPE
       else
 
+
       end
 
     elseif actionType == 'mount' then
@@ -176,7 +177,11 @@
 do
   local PickupAction = {
     spell = _G.PickupSpell,
-    petaction = _G.PickupSpellBookItem,
+    petaction =
+      function(...)
+        -- needs to be enclosed to acquire hooksecurefunc effects
+        _G.PickupSpellBookItem(...)
+      end,
     macro = _G.PickupMacro,
     item = _G.PickupItem,
     mount = _G.C_MountJournal.Pickup