WoW:API GetShapeshiftForm: Difference between revisions

Clarified arguement use
m (→‎Parameters: 3.2 Rogue changes.)
(Clarified arguement use)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
  stance = GetShapeshiftForm(arg1);
  index = GetShapeshiftForm(flag);


== Parameters ==
== Parameters ==
Line 6: Line 6:
<big>'''Arguments'''</big>
<big>'''Arguments'''</big>


:; arg1 : Boolean - For most classes the argument doesn't matter. Paladin auras and Death Knight Presences however will only be returned if the argument is nil (or false).
:; flag: Boolean (Optional) - True if return value is to be compared to a macro's conditional statement. This makes it always return zero for Presences and Auras. False or nil returns an index based on which button to highlight on the shapeshift/stance bar left to right starting at 1.


<big>'''Returns'''</big>
<big>'''Returns'''</big>
:;stance : Number - one of following:
:;index : Number - one of following:


::;Any class
::;Any class
Anonymous user