Skip to content

Commit

Permalink
Fix stances for druids
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaka committed Jan 21, 2016
1 parent fe92f8b commit 054f7b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SnowfallKeyPress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ local function S(L,p,f,d,a)local e;
-- e:SetScript("PostClick",function(e)e.clickButtonName=string.sub(e:GetAttribute("macrotext"),8);
-- A(e);
-- end);
e:SetAttribute("macrotext", "/click [nostance] ActionButton"..t..";".."BonusActionButton"..t)
if( select(2,UnitClass("player")) == "DRUID" ) then
e:SetAttribute("macrotext", "/click [stance:1/3] BonusActionButton"..t..";".."ActionButton"..t)
else
e:SetAttribute("macrotext", "/click [nostance] ActionButton"..t..";".."BonusActionButton"..t)
end
e.clickButtonName="ActionButton"..t
e:SetScript("PostClick", A);
--e:SetScript("PostClick", function() SnowfallKeyPress.animation.defaultHandler(e) end);
Expand Down

0 comments on commit 054f7b6

Please sign in to comment.