Mercurial > wow > skeletonkey
comparison SkeletonKey/KeySlot.lua @ 22:f6dd297cb812
- fix pet stance/actioni bindings
- fix pet action availability check
author | Nenue |
---|---|
date | Sat, 30 Jul 2016 20:44:03 -0400 |
parents | 564015ef0317 |
children |
comparison
equal
deleted
inserted
replaced
21:564015ef0317 | 22:f6dd297cb812 |
---|---|
508 isDynamic = 'petaction' | 508 isDynamic = 'petaction' |
509 local specialType, specialNum = command:match(actionType..'_([%a%s]+)_(%d)') | 509 local specialType, specialNum = command:match(actionType..'_([%a%s]+)_(%d)') |
510 | 510 |
511 if kb.PetCache.subtext[specialType] and kb.PetCache.subtext[specialType][tonumber(specialNum)] then | 511 if kb.PetCache.subtext[specialType] and kb.PetCache.subtext[specialType][tonumber(specialNum)] then |
512 print('***dynamic pet thign', specialType, specialNum) | 512 print('***dynamic pet thign', specialType, specialNum) |
513 isAvailable = true | |
514 --[[ i, spellName, subText, spellID, texture, specialNum[subText ]] | 513 --[[ i, spellName, subText, spellID, texture, specialNum[subText ]] |
515 pickupSlot, name, specialType, actionID, icon, specialNum = unpack(kb.PetCache.subtext[specialType][tonumber(specialNum)]) | 514 pickupSlot, name, specialType, actionID, icon, specialNum = unpack(kb.PetCache.subtext[specialType][tonumber(specialNum)]) |
516 pickupBook = BOOKTYPE_PET | 515 pickupBook = BOOKTYPE_PET |
517 end | 516 end |
517 | |
518 isAvailable = (kb.PetCache.spellslot[name]) | |
518 | 519 |
519 | 520 |
520 elseif actionType == 'macro' then | 521 elseif actionType == 'macro' then |
521 if not actionID then | 522 if not actionID then |
522 actionID = GetMacroIndexByName(name) | 523 actionID = GetMacroIndexByName(name) |