summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-05-08 23:50:27 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-05-09 00:35:30 +0100
commitb0bf75c565f3ed9c26439434f212164334cbde0d (patch)
tree55e49e8aa1b9fdf20faaeafb000034a1c03a7ea0 /crawl-ref/source/mon-act.cc
parentbad39bebbe5a9e2aa3154ea02718a5b17f4ccc20 (diff)
downloadcrawl-ref-b0bf75c565f3ed9c26439434f212164334cbde0d.tar.gz
crawl-ref-b0bf75c565f3ed9c26439434f212164334cbde0d.zip
Don't distract non-hostile monsters with gold under Gozag
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index e78f6f2330..d664fd72ab 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -2066,7 +2066,7 @@ void handle_monster_move(monster* mons)
}
const int gold = gozag_gold_in_los(mons);
- if (gold > 0)
+ if (!mons->wont_attack() && gold > 0)
{
for (int i = 0; i < gold; i++)
if (one_chance_in(20))