summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:39:19 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-02 14:39:19 +0000
commite37ab8471fcc8761a0d4a4954918ec4c679ed1bb (patch)
tree014e77a542007c8a29084bcaa4252a0e9c0fad3e /crawl-ref/source/decks.cc
parent6a8469f3af9fff8fd6670be7bab4b7652ef3f957 (diff)
downloadcrawl-ref-e37ab8471fcc8761a0d4a4954918ec4c679ed1bb.tar.gz
crawl-ref-e37ab8471fcc8761a0d4a4954918ec4c679ed1bb.zip
Only apply targeting via monster list to spells and such where
targeting monsters is actually needed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6338 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 9766a536fe..d2a47c5ab0 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1678,7 +1678,7 @@ static bool _damaging_card(card_type card, int power, deck_rarity_type rarity)
snprintf(info, INFO_SIZE, "You have drawn %s. Aim where? ",
card_name(card));
- if (spell_direction(target, beam, DIR_NONE, TARG_ENEMY, true, info)
+ if (spell_direction(target, beam, DIR_NONE, TARG_ENEMY, true, true, info)
&& player_tracer(ztype, power/4, beam))
{
zapping(ztype, random2(power/4), beam);