diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 06:21:22 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 06:21:22 +0000 |
commit | b2d608cf10a6d87cac3d16835166be708ab109b9 (patch) | |
tree | d12d6dd8c0130a51fc9557979ba91266eac87636 /crawl-ref/source/spells1.cc | |
parent | fb9acb2668f2bfa66cc53e718a612252feca4d6b (diff) | |
download | crawl-ref-b2d608cf10a6d87cac3d16835166be708ab109b9.tar.gz crawl-ref-b2d608cf10a6d87cac3d16835166be708ab109b9.zip |
In _healing_spell(), use the same targeting options for
spell_direction() that were used for direction() before.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6209 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 64b64871a8..01ef4797fe 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -687,7 +687,10 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1) dist spd; if (target_x == -1 || target_y == -1) - spd.isValid = spell_direction(spd, beam); + { + spd.isValid = spell_direction(spd, beam, DIR_TARGET, + TARG_FRIEND, true, "Heal whom?"); + } else { spd.tx = target_x; |