summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2011-03-06 19:02:04 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2011-03-06 19:02:04 +1000
commit0b3b26af7e555e6867ff25ce851e441678837e69 (patch)
tree6b487085611237ec81805144fffe9daba00bb907 /crawl-ref/source/behold.cc
parentb1d578846b67e95d40866b2e8efc75235082c553 (diff)
downloadcrawl-ref-0b3b26af7e555e6867ff25ce851e441678837e69.tar.gz
crawl-ref-0b3b26af7e555e6867ff25ce851e441678837e69.zip
Fix Mesmerisation spell (kilobyte).
Forgot to update possible_beholder to accept any monster with the Mesmerisation spell.
Diffstat (limited to 'crawl-ref/source/behold.cc')
-rw-r--r--crawl-ref/source/behold.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/behold.cc b/crawl-ref/source/behold.cc
index c8d23e29e3..ffbb9b0cf9 100644
--- a/crawl-ref/source/behold.cc
+++ b/crawl-ref/source/behold.cc
@@ -222,7 +222,8 @@ bool player::possible_beholder(const monster* mon) const
return (mon->alive() && !mon->submerged()
&& see_cell_no_trans(mon->pos()) && mon->see_cell_no_trans(pos())
&& !mon->wont_attack() && !mon->pacified()
- && (mons_genus(mon->type) == MONS_MERMAID
+ && ((mons_genus(mon->type) == MONS_MERMAID
+ || mon->has_spell(SPELL_MESMERISE))
&& !silenced(pos()) && !silenced(mon->pos())
&& !mon->has_ench(ENCH_MUTE)
&& !mon->confused()