summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-14 14:12:48 -0400
committerNeil Moore <neil@s-z.org>2014-07-14 14:12:48 -0400
commita737d34e685053e3131322f76e383b40a8953f0a (patch)
tree439a3832999638940cb79097996401452010ecac /crawl-ref/source/spl-selfench.cc
parent783a5bfccb7505cb4559d01a42f02f624b8b7367 (diff)
downloadcrawl-ref-a737d34e685053e3131322f76e383b40a8953f0a.tar.gz
crawl-ref-a737d34e685053e3131322f76e383b40a8953f0a.zip
Prevent casting Leda's in tree form.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r--crawl-ref/source/spl-selfench.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index 1f1b8a1d8f..0c8d67e38d 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -374,6 +374,13 @@ spret_type cast_liquefaction(int pow, bool fail)
mpr("You need to be on clear, solid ground to cast this spell.");
return SPRET_ABORT;
}
+ else if (you.is_stationary())
+ {
+ string foot = you.foot_name(true);
+ mprf("You can't cast this spell with your %s attached to the ground.",
+ foot.c_str());
+ return SPRET_ABORT;
+ }
if (you.duration[DUR_LIQUEFYING] || liquefied(you.pos()))
{