From 7de8d7ab10e11583a103ad432799aa88af28e7de Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 16 Apr 2009 10:40:14 +0200 Subject: [PATCH] Add support for Shadow Dance switching --- ActionBars.lua | 2 +- Options/Bar.lua | 4 ++++ StateBar.lua | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ActionBars.lua b/ActionBars.lua index 4072ccf..6115390 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -22,7 +22,7 @@ local abdefaults = { stance = { DRUID = { bear = 9, cat = 7, prowl = 8 }, WARRIOR = { battle = 7, def = 8, berserker = 9 }, - ROGUE = { stealth = 7 } + ROGUE = { stealth = 7, shadowdance = 7 } }, }, visibility = { diff --git a/Options/Bar.lua b/Options/Bar.lua index 415b1c1..b0e8d39 100644 --- a/Options/Bar.lua +++ b/Options/Bar.lua @@ -172,6 +172,10 @@ local function getStanceTable() if class == "WARLOCK" and tbl[1] == GetSpellInfo(59672) then tbl[2], tbl[1] = tbl[1], nil end + + if class == "ROGUE" and tbl[1] == GetSpellInfo(51713) then -- shadow dance hack + tbl[3], tbl[1] = tbl[1], nil + end return tbl end diff --git a/StateBar.lua b/StateBar.lua index d2157a0..ffa0433 100644 --- a/StateBar.lua +++ b/StateBar.lua @@ -72,6 +72,7 @@ local DefaultStanceMap = setmetatable({}, { __index = function(t,k) elseif k == "ROGUE" then newT = { { id = "stealth", name = GetSpellInfo(1784), index = 1 }, + { id = "shadowdance", name = GetSpellInfo(51713), index = 3, type = "form" }, } elseif k == "PRIEST" then newT = {