next rewrite of melee distance check in spell (after measurements)