diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-06 13:08:10 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-06 13:08:10 +0000 |
commit | cb950d928f6e7a32b2ffbf70d4f96a7a8338f91f (patch) | |
tree | bcacc6daa065d981fb66ee48d08f502ba4269f4c /crawl-ref/source/spells1.cc | |
parent | 960323c5b08a5431ac60b72c7de65a40ef203183 (diff) | |
download | crawl-ref-cb950d928f6e7a32b2ffbf70d4f96a7a8338f91f.tar.gz crawl-ref-cb950d928f6e7a32b2ffbf70d4f96a7a8338f91f.zip |
Only let Elyvilonite players automatically target enemy monsters for
healing, as only they can pacify enemy monsters that way.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6420 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index c86d698493..d5547c38c6 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -685,8 +685,10 @@ static int _healing_spell(int healed, int target_x = -1, int target_y = -1) if (target_x == -1 || target_y == -1) { - spd.isValid = spell_direction(spd, beam, DIR_TARGET, TARG_ANY, true, - true, "Heal whom?"); + spd.isValid = spell_direction(spd, beam, DIR_TARGET, + you.religion == GOD_ELYVILON ? + TARG_ANY : TARG_FRIEND, + true, true, "Heal whom?"); } else { @@ -697,7 +699,7 @@ static int _healing_spell(int healed, int target_x = -1, int target_y = -1) if (!spd.isValid) { - canned_msg( MSG_OK ); + canned_msg(MSG_OK); return (0); } |