diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 11:26:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-28 11:26:54 +0000 |
commit | 30972f8855a581f440406e7bc5880f18a489efb4 (patch) | |
tree | d9f5f7e5e7d7e6cbffb6d579704b6cf61961b17b /crawl-ref/source/spl-util.cc | |
parent | 69d26de6e5bbfb0746e85fe5f620960578cd79bf (diff) | |
download | crawl-ref-30972f8855a581f440406e7bc5880f18a489efb4.tar.gz crawl-ref-30972f8855a581f440406e7bc5880f18a489efb4.zip |
Fix 2021696: allow_self_target = no even forbidding self-targetting for
area effect spells (now prompts)
Fix 2028704: spell view toggle 'I' preventing forgetting spell slot 'I'
Allow intelligent summoned monsters to equip themselves.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6703 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r-- | crawl-ref/source/spl-util.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index 8e4d320447..73d0b16f84 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -739,13 +739,15 @@ void apply_area_cloud( int (*func) (int, int, int, int, cloud_type, bool spell_direction( dist &spelld, bolt &pbolt, targeting_type restrict, targ_mode_type mode, bool needs_path, bool may_target_monster, - const char *prompt, bool cancel_at_self ) + bool may_target_self, const char *prompt, + bool cancel_at_self ) { if (restrict != DIR_DIR) message_current_target(); direction( spelld, restrict, mode, -1, false, needs_path, - may_target_monster, prompt, NULL, cancel_at_self ); + may_target_monster, may_target_self, prompt, NULL, + cancel_at_self ); if (!spelld.isValid) { |