diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 02:51:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 02:51:44 +0000 |
commit | 0fb28d6c1b82e6c10e00c4cc9b946eb010d65017 (patch) | |
tree | 1377e3e61587069330bf28359a7a871723a458bf /crawl-ref/source/traps.cc | |
parent | 967e9e7bb84c639c1e5065c6a65a05972dbc88c5 (diff) | |
download | crawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.tar.gz crawl-ref-0fb28d6c1b82e6c10e00c4cc9b946eb010d65017.zip |
Expand handling of monster intelligence and zombifiability to work on
the level of individual monsters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7148 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index a66b9fb40f..c162ed6e3a 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -150,7 +150,7 @@ bool trap_def::is_known(const actor* act) const { const monsters* monster = static_cast<const monsters*>(act); const bool mechanical = (this->category() == DNGN_TRAP_MECHANICAL); - const int intel = mons_intel(monster->type); + const int intel = mons_intel(monster); // Smarter trap handling for intelligent monsters // * monsters native to a branch can be assumed to know the trap |