Mercurial > wow > skeletonkey
comparison 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 |
comparison
equal
deleted
inserted
replaced
54:a545933ddf3d | 55:c416c9e6d212 |
---|---|
128 | 128 |
129 pickupID = CURSOR_SPELLSLOT | 129 pickupID = CURSOR_SPELLSLOT |
130 pickupBook = CURSOR_BOOKTYPE | 130 pickupBook = CURSOR_BOOKTYPE |
131 else | 131 else |
132 | 132 |
133 | |
133 end | 134 end |
134 | 135 |
135 elseif actionType == 'mount' then | 136 elseif actionType == 'mount' then |
136 if subType == 0 then | 137 if subType == 0 then |
137 name, _, icon = GetSpellInfo(SUMMON_RANDOM_FAVORITE_MOUNT_SPELL) | 138 name, _, icon = GetSpellInfo(SUMMON_RANDOM_FAVORITE_MOUNT_SPELL) |
174 | 175 |
175 | 176 |
176 do | 177 do |
177 local PickupAction = { | 178 local PickupAction = { |
178 spell = _G.PickupSpell, | 179 spell = _G.PickupSpell, |
179 petaction = _G.PickupSpellBookItem, | 180 petaction = |
181 function(...) | |
182 -- needs to be enclosed to acquire hooksecurefunc effects | |
183 _G.PickupSpellBookItem(...) | |
184 end, | |
180 macro = _G.PickupMacro, | 185 macro = _G.PickupMacro, |
181 item = _G.PickupItem, | 186 item = _G.PickupItem, |
182 mount = _G.C_MountJournal.Pickup | 187 mount = _G.C_MountJournal.Pickup |
183 } | 188 } |
184 local GetPickupValue = { | 189 local GetPickupValue = { |