[7576] Fixed spell range check for spells with minimal distances