Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsTalentTrainer

Last wiki revision 2020-01-08

Indicates whether target can train talents.

exists = IsTalentTrainer

  • none
  • 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.

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

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

Source

https://warcraft.wiki.gg/wiki/API_IsTalentTrainer · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.