# HG changeset patch # User Nenue # Date 1471764819 14400 # Node ID c416c9e6d2124eb921dc84625a831b3624cabff0 # Parent a545933ddf3d89c05848fd1cd63a8abf366e1817 - fixed lua error that occurs when a pet skill picked up from the addon buttons is dropped diff -r a545933ddf3d -r c416c9e6d212 SkeletonKey/KeyButton.lua --- 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