WoW:API IsTalentTrainer: Difference between revisions
Jump to navigation
Jump to search
m (→Example) |
m (Move page script moved page API IsTalentTrainer to API IsTalentTrainer without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
{{removedapi|≤ 3.1.3}} | |||
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | ||
Indicates whether target can train talents. | Indicates whether target can train talents. | ||
Latest revision as of 04:46, 15 August 2023
This is no longer a part of the World of Warcraft API.
|
Indicates whether target can train talents.
exists = IsTalentTrainer()
Parameters
Arguments
- none
Returns
- exists
- Bool - 1 if the target can train talents, or nil otherwise.
Remarks
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.