diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-22 17:36:55 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-22 17:36:55 -0600 |
commit | 4f71c490e0b3a01b2730d850e06ef155e50fba4c (patch) | |
tree | 7cc97b759adc647e558b921d187865e6e10aae97 /crawl-ref/source/mon-util.cc | |
parent | 2afddda13021e69d4e49ed897f2633602e413472 (diff) | |
download | crawl-ref-4f71c490e0b3a01b2730d850e06ef155e50fba4c.tar.gz crawl-ref-4f71c490e0b3a01b2730d850e06ef155e50fba4c.zip |
Don't give Dith piety for gnoll shaman skeletons (MarvinPA).
Or zombies of other illuminating monsters.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index a59619ba83..19c92fcc53 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -706,6 +706,9 @@ bool mons_is_illuminating(const monster* mon) if (mon->halo_radius2() >= 0) return true; + if (!mon->can_use_spells()) + return false; + for (int i = 0; i < NUM_MONSTER_SPELL_SLOTS; ++i) { if (is_illuminating_spell(mon->spells[i])) |