Oops, don't automatically set aimed_at_feet, since the caller might be doing

weird stuff with source and target. Make setup_mons_cast() deal with it for monster spells which the monster aims at itself.

Force range to 0 when source == target.

In mons_cast() assert that targeted spells have an in-bounds target and that harmful spells are only aimed at the caster when the caster is confused.

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

Created by  zelgadis  on December 27, 2008
AMNWAYRX7CBFRYF3DNCHWIMVXLLVISWGJKYYCFN4MUZN7M3XP2KQC
Change contents