Add support for Shadow Dance switching
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ local abdefaults = {
|
|||||||
stance = {
|
stance = {
|
||||||
DRUID = { bear = 9, cat = 7, prowl = 8 },
|
DRUID = { bear = 9, cat = 7, prowl = 8 },
|
||||||
WARRIOR = { battle = 7, def = 8, berserker = 9 },
|
WARRIOR = { battle = 7, def = 8, berserker = 9 },
|
||||||
ROGUE = { stealth = 7 }
|
ROGUE = { stealth = 7, shadowdance = 7 }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
visibility = {
|
visibility = {
|
||||||
|
|||||||
@@ -172,6 +172,10 @@ local function getStanceTable()
|
|||||||
if class == "WARLOCK" and tbl[1] == GetSpellInfo(59672) then
|
if class == "WARLOCK" and tbl[1] == GetSpellInfo(59672) then
|
||||||
tbl[2], tbl[1] = tbl[1], nil
|
tbl[2], tbl[1] = tbl[1], nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if class == "ROGUE" and tbl[1] == GetSpellInfo(51713) then -- shadow dance hack
|
||||||
|
tbl[3], tbl[1] = tbl[1], nil
|
||||||
|
end
|
||||||
return tbl
|
return tbl
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ local DefaultStanceMap = setmetatable({}, { __index = function(t,k)
|
|||||||
elseif k == "ROGUE" then
|
elseif k == "ROGUE" then
|
||||||
newT = {
|
newT = {
|
||||||
{ id = "stealth", name = GetSpellInfo(1784), index = 1 },
|
{ id = "stealth", name = GetSpellInfo(1784), index = 1 },
|
||||||
|
{ id = "shadowdance", name = GetSpellInfo(51713), index = 3, type = "form" },
|
||||||
}
|
}
|
||||||
elseif k == "PRIEST" then
|
elseif k == "PRIEST" then
|
||||||
newT = {
|
newT = {
|
||||||
|
|||||||
Reference in New Issue
Block a user