Mercurial > wow > skeletonkey
diff SkeletonKey/BindingsFrame.lua @ 65:556e075983a6
check for valid spell name when updating talent data
author | Nenue |
---|---|
date | Sat, 10 Sep 2016 19:08:19 -0400 |
parents | 2409fe9b81e1 |
children |
line wrap: on
line diff
--- a/SkeletonKey/BindingsFrame.lua Fri Sep 09 11:40:53 2016 -0400 +++ b/SkeletonKey/BindingsFrame.lua Sat Sep 10 19:08:19 2016 -0400 @@ -417,7 +417,7 @@ end end - if not kb.db.showUI then + if InCombatLockdown() or not kb.db.showUI then print('---end of refresh') return end @@ -618,11 +618,15 @@ else profile.bindings[self.binding] = self.command end - profile.talents[talentName] = talentInfo + if talentName then + profile.talents[talentName] = talentInfo + end else profile.bindings[self.binding] = nil profile.bound[self.command] = nil - profile.talents[talentName] = nil + if talentName then + profile.talents[talentName] = nil + end end end