Add support for Shadow Dance switching

This commit is contained in:
Hendrik Leppkes
2009-04-16 10:40:14 +02:00
parent c0c8f9db64
commit 7de8d7ab10
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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 = {
+4
View File
@@ -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
+1
View File
@@ -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 = {