summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-stuff.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-27 12:25:16 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-27 12:25:16 +1000
commitcaa3c8aacc375d4b6caf03670bf216d624af9de4 (patch)
tree4c6ebd6425643bbc51ba68f6eed1510100ac48c7 /crawl-ref/source/mon-stuff.cc
parent67a41e98876dfb01bc65f2a9c25b6f915bbaadea (diff)
downloadcrawl-ref-caa3c8aacc375d4b6caf03670bf216d624af9de4.tar.gz
crawl-ref-caa3c8aacc375d4b6caf03670bf216d624af9de4.zip
Make berserk monsters ignore unsafe clouds (FR256).
Diffstat (limited to 'crawl-ref/source/mon-stuff.cc')
-rw-r--r--crawl-ref/source/mon-stuff.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-stuff.cc b/crawl-ref/source/mon-stuff.cc
index e746fd5d07..22917b895e 100644
--- a/crawl-ref/source/mon-stuff.cc
+++ b/crawl-ref/source/mon-stuff.cc
@@ -3126,6 +3126,11 @@ bool mons_avoids_cloud(const monsters *monster, cloud_struct cloud,
if (placement)
extra_careful = true;
+ // Berserk monsters are less careful and will blindly plow through any
+ // dangerous cloud, just to kill you. {due}
+ if (!extra_careful && monster->berserk())
+ return (true);
+
switch (cl_type)
{
case CLOUD_MIASMA: