Help with self.distanceTo statement

I’ve seen this error message once before, when I tried to use cleave and I had the Hammer equipped.

For spells, use canCast instead of isReady.