Modify mon_enemies_around() logic to allow friends to also cast spells

if they have a foe but you don't, i.e. if their foe is out of your LOS.

Don't allow patrolling to a target grid that is occupied by a monster in case it's a stationary monster (plant or sleeping).

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

Created by  j-p-e-g  on May 28, 2008
H7AOW4T4Q7AKOXREMK6ZXN3GK6A4I24ICE6VTROMJ5Y3LX47TSDAC
Change contents