API GetShapeshiftFormInfo

From Wowpedia
Jump to: navigation, search

Retrieves information about an available shapeshift form or similar ability.

icon, active, castable, spellID = GetShapeshiftFormInfo(index);

Arguments

index 
Number - index, ascending from 1 to GetNumShapeshiftForms()

Returns

icon
String - Path to icon texture
active
Flag - 1 if this shapeshift is currently active, nil otherwise
castable
Flag - 1 if this shapeshift form may be entered, nil otherwise
spellID
Number - ID of the spell that activates this ability

Notes

  • As well as druid shapeshifting, warrior stances, paladin auras, hunter aspects, death knight presences, and shadowform use this API.