IsTrainerServiceLearnSpell

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the type of trainer spell in the trainer window.

isLearnSpell, isPetLearnSpell = IsTrainerServiceLearnSpell(index)

Arguments

index
number - The index of the spell in the trainer window.

Returns

isLearnSpell
number - Returns 1 if the spell is a class spell or a learnable profession spell, nil otherwise.
isPetLearnSpell
number - Returns 1 if a pet spell, nil otherwise.

Patch changes

Bc icon.gif Patch 2.4.0 (2008-03-25): Removed.

See also