diff KeyButton.lua @ 83:1605319122ce

- Added a list of special-cases for replaced abilities that can't be detected internally (Carve, Blink, etc.)
author Nenue
date Sun, 28 May 2017 12:45:32 -0400
parents 9a206b105ea5
children 1407e3a2cd1f
line wrap: on
line diff
--- a/KeyButton.lua	Mon Apr 17 13:28:20 2017 -0400
+++ b/KeyButton.lua	Sun May 28 12:45:32 2017 -0400
@@ -54,16 +54,25 @@
   [212653] = {
     actionName = 'Blink',
     actionID = 1953,
+    icon = [[Interface\\ICONS\\spell_arcane_blink]]
   },
   -- Sidewinders; have to assume arcane sadly
   [214579] = {
     actionName = 'Arcane Shot',
     actionID = 185358,
+    icon = [[Interface\\ICONS\\ability_impalingbolt]]
   },
   -- Serenity
   [152173] = {
     actionName = 'Storm, Earth, and Fire',
-    actionID = 137639
+    actionID = 137639,
+    icon = [[Interface\\ICONS\\spell_nature_giftofthewild]]
+  },
+  -- Carve
+  [212436] = {
+    actionName = 'Carve',
+    actionID = 187708,
+    icon = [[Interface\\ICONS\\ability_hunter_carve]]
   }
 }
 
@@ -196,6 +205,11 @@
     if actionType == 'spell' then
       local realName = GetSpellInfo(subData)
       name, _, icon, _, _, _, actionID = GetSpellInfo(subData)
+
+      if TALENT_SPELLS[actionID] then
+        name = TALENT_SPELLS[actionID].actionName
+        actionID  = TALENT_SPELLS[actionID].actionID
+        icon = TALENT_SPELLS[actionID].icon
     elseif actionType == 'macro' then
       name, icon, macroText = GetMacroInfo(actionID)
       macroName = name