changeset 87:b80e78f4a17b

Unintended fork
author Nenue
date Tue, 17 Jul 2018 14:49:10 -0400
parents d6831be74cf4 (current diff) 1605319122ce (diff)
children 283dacee2850
files ActionTemplates.lua
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/KeyButton.lua	Tue Jul 17 14:46:43 2018 -0400
+++ b/KeyButton.lua	Tue Jul 17 14:49:10 2018 -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