summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-other.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-03 02:39:48 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-03 02:39:48 -0400
commitbd327c51983bf9d852ecbaae0609c955c2cf01e1 (patch)
tree9e45732a0dec2f3073082673fb396f9309416286 /crawl-ref/source/spl-other.cc
parent607855aec80ea4fe29d31bce41ddac70a1d6a468 (diff)
downloadcrawl-ref-bd327c51983bf9d852ecbaae0609c955c2cf01e1.tar.gz
crawl-ref-bd327c51983bf9d852ecbaae0609c955c2cf01e1.zip
stationary monsters should also block passwall (2019)
Diffstat (limited to 'crawl-ref/source/spl-other.cc')
-rw-r--r--crawl-ref/source/spl-other.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-other.cc b/crawl-ref/source/spl-other.cc
index 3fb1070d7e..d59621c04f 100644
--- a/crawl-ref/source/spl-other.cc
+++ b/crawl-ref/source/spl-other.cc
@@ -333,9 +333,10 @@ spret_type cast_passwall(const coord_def& delta, int pow, bool fail)
// Below here, failing to cast yields information to the
// player, so we don't make the spell abort (return true).
+ monster *mon = monster_at(dest);
if (!in_bounds(dest))
mpr("You sense an overwhelming volume of rock.");
- else if (cell_is_solid(dest))
+ else if (cell_is_solid(dest) || (mon && mon->is_stationary()))
mpr("Something is blocking your path through the rock.");
else if (walls > maxrange)
mpr("This rock feels extremely deep.");