diff KeyButton.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
line wrap: on
line diff
--- a/KeyButton.lua	Tue Mar 21 02:23:23 2017 -0400
+++ b/KeyButton.lua	Mon Apr 17 13:27:34 2017 -0400
@@ -48,6 +48,25 @@
   [6] = 5
 }
 
+-- Spell replacements that can't be easily detected
+local TALENT_SPELLS = {
+  -- Shimmer
+  [212653] = {
+    actionName = 'Blink',
+    actionID = 1953,
+  },
+  -- Sidewinders; have to assume arcane sadly
+  [214579] = {
+    actionName = 'Arcane Shot',
+    actionID = 185358,
+  },
+  -- Serenity
+  [152173] = {
+    actionName = 'Storm, Earth, and Fire',
+    actionID = 137639
+  }
+}
+
 
 -- This is needed to identify a spells that aren't reflected by GetCursorInfo()
 kb.OnPickupPetAction = function(slot, ...)
@@ -355,7 +374,7 @@
 
     if self.dynamicType == 'profession'  then
       if self.isAvailable then
-        self.statusText = '|cFFFFFF00Profession|r'
+        self.statusText = '|cFFFFFF00Profession Slot|r ' .. tostring(self.dynamicIndex) .. '-' .. tostring(self.dynamicSubIndex)
       else
 
         self.statusText = '|cFFFF4400'..PROFESSION_HEADERS[self.dynamicIndex]..'|r'