# UnitCharacterPoints is not in World of Warcraft Forever: write C_ClassTalents.HasUnspentTalentPoints

Forever 1.60.1 (70959), Interface 16001. An addon that calls `UnitCharacterPoints` stops at /reload with `attempt to call global 'UnitCharacterPoints' (a nil value)`. Write `C_ClassTalents.HasUnspentTalentPoints`; its arguments and returns may differ from the old UnitCharacterPoints, read them first. Page: https://wowaddons.gg/forever-api/C_ClassTalents.md

```lua
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

---
Make an addon with your 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."
