WoW API < IsTalentTrainer

Indicates whether target can train talents.

exists = IsTalentTrainer()

Parameters[edit | edit source]

Arguments[edit | edit source]


Returns[edit | edit source]

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

Remarks[edit | edit source]

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 | edit source]

  if (IsTalentTrainer()) then 
     DEFAULT_CHAT_FRAME:AddMessage("Target is a talent trainer.")
     DEFAULT_CHAT_FRAME:AddMessage("Target is not a talent trainer.")

Result[edit | edit source]

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

Community content is available under CC-BY-SA unless otherwise noted.