Mercurial > wow > skeletonkey
diff SkeletonKey/KeyButton.lua @ 63:2409fe9b81e1
- check macro spells when considering whether a binding should be treated as a talent
- clean up talent binding data when releasing/unbinding slots with a related macro/spell
author | Nenue |
---|---|
date | Thu, 08 Sep 2016 16:52:55 -0400 |
parents | 04c23ceaf9e0 |
children |
line wrap: on
line diff
--- a/SkeletonKey/KeyButton.lua Mon Sep 05 14:56:38 2016 -0400 +++ b/SkeletonKey/KeyButton.lua Thu Sep 08 16:52:55 2016 -0400 @@ -357,10 +357,13 @@ if self.command then kb.currentProfile.commands[self.command] = nil end - if self.actionType == 'spell' and IsTalentSpell(self.actionName) then - if kb.currentProfile.talents[self.actionID] then - kb.currentProfile.talents[self.actionID] = nil - end + local talentName = self.actionID + if self.actionType == 'macro' then + talentName = GetMacroSpell(self.actionID) + end + -- remove any matching talent data + if talentName and kb.currentProfile.talents[talentName] then + kb.currentProfile.talents[talentName] = nil end local droppedKeys = {}