summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-05-13 17:05:45 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-05-13 17:05:45 +0100
commit2398eb5f414cf1c937c1d5ce2c747c370cbc627e (patch)
tree16cd1711638a50546ce9120750a80c3cb0bbab2e /crawl-ref/source/mon-act.cc
parent7b41838de5b634374233e7446b3ea39e32d4d8d2 (diff)
downloadcrawl-ref-2398eb5f414cf1c937c1d5ce2c747c370cbc627e.tar.gz
crawl-ref-2398eb5f414cf1c937c1d5ce2c747c370cbc627e.zip
Don't let monster avatars be distracted by gold
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 531ad855f5..55aedc6f37 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -2069,6 +2069,7 @@ void handle_monster_move(monster* mons)
const int gold = gozag_gold_in_los(mons);
if (!mons->asleep()
+ && !mons_is_avatar(mons->type)
&& !mons->wont_attack() && gold > 0)
{
for (int i = 0; i < gold; i++)