Take range information from the beam if applicable in spell_direction().

Implements [2553289].

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8889 c06c8d41-db1a-0410-9941-cceddc491573

Created by  haranp  on February 4, 2009
7IPYQAVJ4QTC4X7P2DD5UXREZHQUFHXM2M5IYQEM5RQBXC4QCTIQC
Change contents