diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-08-03 02:39:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-08-03 02:39:48 -0400 |
commit | bd327c51983bf9d852ecbaae0609c955c2cf01e1 (patch) | |
tree | 9e45732a0dec2f3073082673fb396f9309416286 /crawl-ref/source/spl-other.cc | |
parent | 607855aec80ea4fe29d31bce41ddac70a1d6a468 (diff) | |
download | crawl-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.cc | 3 |
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."); |