Mercurial > wow > skeletonkey
comparison 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 |
comparison
equal
deleted
inserted
replaced
62:04c23ceaf9e0 | 63:2409fe9b81e1 |
---|---|
355 kb.currentProfile.buttons[slot] = nil | 355 kb.currentProfile.buttons[slot] = nil |
356 end | 356 end |
357 if self.command then | 357 if self.command then |
358 kb.currentProfile.commands[self.command] = nil | 358 kb.currentProfile.commands[self.command] = nil |
359 end | 359 end |
360 if self.actionType == 'spell' and IsTalentSpell(self.actionName) then | 360 local talentName = self.actionID |
361 if kb.currentProfile.talents[self.actionID] then | 361 if self.actionType == 'macro' then |
362 kb.currentProfile.talents[self.actionID] = nil | 362 talentName = GetMacroSpell(self.actionID) |
363 end | 363 end |
364 -- remove any matching talent data | |
365 if talentName and kb.currentProfile.talents[talentName] then | |
366 kb.currentProfile.talents[talentName] = nil | |
364 end | 367 end |
365 local droppedKeys = {} | 368 local droppedKeys = {} |
366 | 369 |
367 -- doing removal in second loop to avoid possible iterator shenanigans | 370 -- doing removal in second loop to avoid possible iterator shenanigans |
368 for k,v in pairs(kb.currentProfile.bindings) do | 371 for k,v in pairs(kb.currentProfile.bindings) do |