summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 18:32:45 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-30 18:32:45 +0000
commit997a1b0dbde19bb2e09fdc16ad7ac8d7997fc85b (patch)
treef1a4cd0f671981d3cdaed8d2cf69a84dd0a500a3
parent58e4e5380bfe6044d9ce0361d1e778a8a41564f4 (diff)
downloadcrawl-ref-997a1b0dbde19bb2e09fdc16ad7ac8d7997fc85b.tar.gz
crawl-ref-997a1b0dbde19bb2e09fdc16ad7ac8d7997fc85b.zip
Blink cancel protect for 0.2.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1133 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 2c20e508c0..72c2748123 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -70,7 +70,7 @@ int blink(void)
direction(beam, DIR_TARGET, TARG_ANY);
- if (!beam.isValid)
+ if (!beam.isValid || coord_def(beam.tx, beam.ty) == you.pos())
{
if (!yesno("Are you sure you want to cancel this blink?",
false, 'n'))