# SpellHasRange is not in World of Warcraft Forever: write C_Spell.SpellHasRange

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

```lua
hasRange = C_Spell.SpellHasRange(spellIdentifier)
```

Returns true if the spell has a min and/or max range greater than 0

Arguments:
- `spellIdentifier`: SpellIdentifier

Returns:
- `hasRange`: bool

---
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."
