summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-23 07:09:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-24 00:30:33 +0200
commit22a9d0ca820883dd21351a928c753ed6e172fa69 (patch)
tree96dde3752dd6e7759b142c5de38060816f0533dd /crawl-ref/source/spl-miscast.cc
parent1a703116878d5b067b6753ad219fae5caf3edc7a (diff)
downloadcrawl-ref-22a9d0ca820883dd21351a928c753ed6e172fa69.tar.gz
crawl-ref-22a9d0ca820883dd21351a928c753ed6e172fa69.zip
Stop a poison miscast when in a wall.
Unlike big_cloud ones (which can spill), a size 1 cloud shouldn't even give a message if it can't spawn the cloud.
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index 67165c20f0..364ec31bf9 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -2765,6 +2765,8 @@ void MiscastEffect::_poison(int severity)
break;
case 1:
+ if (cell_is_solid(target->pos()))
+ break;
you_msg = "Noxious gasses pour from your @hands@!";
mon_msg_seen = "Noxious gasses pour from @the_monster@'s "
"@hands@!";