Mercurial > wow > skeletonkey
diff SkeletonKey/KeyButton.lua @ 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 | 81a7c71c4483 |
children | 04c23ceaf9e0 |
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