World of Warcraft Forever API · GetUnspentTalentPoints.md, for your AI
GetUnspentTalentPoints is not in Forever
An addon that calls it stops at /reload with attempt to call global 'GetUnspentTalentPoints' (a nil value). Write C_ClassTalents.HasUnspentTalentPoints instead: its arguments and returns may differ from the old GetUnspentTalentPoints, read them below.
C_ClassTalents.HasUnspentTalentPoints
hasUnspentPoints, numClassPoints, numSpecPoints = C_ClassTalents.HasUnspentTalentPoints()
Returns whether the player has any unspent talent points in their class or spec talent trees. If hasUnspentPoints is true, the number of unspent points for at least one of the trees will be greater than zero. Hero talent points are not included by this function.
Returns
hasUnspentPoints | bool | |
|---|---|---|
numClassPoints | number | |
numSpecPoints | number |
Every other call of the C_ClassTalents system: C_ClassTalents. The WowAddons app checks a whole addon before the game does: wowaddons check names each call Forever lacks and what to write instead.
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.