From cb950d928f6e7a32b2ffbf70d4f96a7a8338f91f Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 6 Jul 2008 13:08:10 +0000 Subject: 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 --- crawl-ref/source/spells1.cc | 8 +++++--- 1 file 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); } -- cgit v1.2.3-54-g00ecf