Mercurial > wow > skeletonkey
diff BindingsFrame.lua @ 71:ca3118127e5e
- Talent change detection
- Use stored assignments for inactive talent slots
author | Nenue |
---|---|
date | Fri, 06 Jan 2017 16:21:49 -0500 |
parents | 131d9190db6b |
children | c48913c5924c |
line wrap: on
line diff
--- a/BindingsFrame.lua Wed Dec 28 16:31:15 2016 -0500 +++ b/BindingsFrame.lua Fri Jan 06 16:21:49 2017 -0500 @@ -510,17 +510,19 @@ tinsert(self.assignedKeys, 1, binding) end - local talentInfo - if spellName and kb.TalentCache[spellName] then + local talentInfo = kb.DynamicSpells[spellName] + if spellName and talentInfo then print('store dynamicType talent') - talentInfo = { - macroName = self.macroName, - actionName = self.actionName, - actionType = self.actionType, - actionID = self.actionID, - assignedKeys = self.assignedKeys - } - kb.currentProfile.talents[spellName] = talentInfo + if talentInfo.dynamicType == 'talent' then + talentInfo = { + macroName = self.macroName, + actionName = self.actionName, + actionType = self.actionType, + actionID = self.actionID, + assignedKeys = self.assignedKeys + } + kb.currentProfile.talents[spellName] = talentInfo + end end for _, key in ipairs(self.assignedKeys) do