diff ActionTemplates.lua @ 81:9a206b105ea5 v7.2.0

- Fixed profession spells not being detected on load-in - Fixed Demon Hunter Vengeance bindings, along with other spells that are replaced by specialization variants. - Spells replaced by a specialization now display the replacing name along with the original name in their binding slot.
author Nenue
date Mon, 17 Apr 2017 13:27:34 -0400
parents b9a53385462c
children 1605319122ce d6831be74cf4
line wrap: on
line diff
--- a/ActionTemplates.lua	Tue Mar 21 02:23:23 2017 -0400
+++ b/ActionTemplates.lua	Mon Apr 17 13:27:34 2017 -0400
@@ -37,6 +37,8 @@
   [9] = 5,
   [10] = 6
 }
+
+
 local petSpellCache,petSubtextCache
 local SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544
 
@@ -168,6 +170,9 @@
       info = SkeletonKey_GetGenericSpell(spellName, spellID, internalIcon or icon)
     end
   end
+
+
+
   info.isAvailable = isAvailable
 
   print('|cFF00FF88Slot Details:|r', info.actionName, info.actionID, info.dynamicType, info.isAvailable)
@@ -201,15 +206,20 @@
     local specialButtonType
     if actionType == 'spell' then
       local realName, _, _, _, _, _, realID = GetSpellInfo(name)
-      if realName and (realName ~= name) then
-        print(' *** "', name, '" resolves to something else...', realName, realID)
+      if realName then
+        if (realName ~= name) then
+        print(' *** "', name, '" is replaced by...', realName, realID)
         --name, actionID = realName, realID
         indexKey = actionType .. '_'.. realID
+        end
+      elseif configTable.dynamicType == 'talent' then
+        print(' *** "', name, '" is a non-selected talent.')
+        return
       end
 
 
 
-      local dynamicInfo = kb.DynamicSpells[spellName]
+      local dynamicInfo = kb.DynamicSpells[name]
       if dynamicInfo then
         configTable.assignedKeys = configTable.assignedKeys or {GetBindingKey(configTable.command) }