Fandom

WoWWiki

API IsTalentTrainer

104,757pages on
this wiki
Add New Page
Talk0 Share
WoW API < IsTalentTrainer

Indicates whether target can train talents.

exists = IsTalentTrainer()

ParametersEdit

ArgumentsEdit

none

Returns Edit

exists 
Bool - 1 if the target can train talents, or nil otherwise.

Remarks Edit

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 Edit

  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 Edit

A message indicating that the target is a talent trainer (because the function always returns 1) is displayed in the default chat frame.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.