summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-06-29 11:43:26 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-06-29 12:41:56 -0400
commit2817eca4d6f33427c4188bc82e0fe593d7c7fe2c (patch)
tree4d697c37f05f7a3215d478cce398c2ed0ccad46a /crawl-ref/source/spl-util.cc
parent251b7a64e320bc847d049c29db59d348a4ccd93f (diff)
downloadcrawl-ref-2817eca4d6f33427c4188bc82e0fe593d7c7fe2c.tar.gz
crawl-ref-2817eca4d6f33427c4188bc82e0fe593d7c7fe2c.zip
Improve some checks.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 491f19dbe7..680840f2df 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -1119,7 +1119,7 @@ bool spell_is_useless(spell_type spell, bool transient)
return true;
break;
case SPELL_SWIFTNESS:
- if (transient && you.form == TRAN_TREE)
+ if (transient && you.is_stationary())
return true;
// looking at player_movement_speed, this should be correct ~DMB
if (player_movement_speed() <= 6)