Links
|
|
Info
|
Added in 1.0.0
|
![shroom shroom](/images/thumb/0/02/Inv_mushroom_11.png/32px-Inv_mushroom_11.png) |
This no longer exists on any flavor of the game.
|
Indicates whether target can train talents.
exists = IsTalentTrainer()
Parameters
Arguments
- none
Returns
- exists
- Bool - 1 if the target can train talents, or nil otherwise.
Unlike the IsTradeskillTrainer() function, this function appears bugged in that calling this function on any target returns 1 regardless of whether the target can train class talents.
Example
if (IsTalentTrainer()) then
DEFAULT_CHAT_FRAME:AddMessage("Target is a talent trainer.")
else
DEFAULT_CHAT_FRAME:AddMessage("Target is not a talent trainer.")
end
Result
A message indicating that the target is a talent trainer (because the function always returns 1) is displayed in the default chat frame.