summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 11:02:43 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 11:02:43 -0600
commit64336d12b0e30861c3eb9d8a9262e328635c95a6 (patch)
tree1efe42d9163db9970132fe33fc9ceadae4a75708 /crawl-ref/source/monplace.cc
parent87d388e09be6bf4a36178a3a2344c78fef4d06a1 (diff)
downloadcrawl-ref-64336d12b0e30861c3eb9d8a9262e328635c95a6.tar.gz
crawl-ref-64336d12b0e30861c3eb9d8a9262e328635c95a6.zip
Replace monsters::is_magic_user() with
monsters::is_actual_spellcaster(), as it's simpler, and monsters with the "actual spells" flag should always have spells anyway.
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 1d28ddcbb9..8d1edb789e 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -2593,7 +2593,7 @@ bool player_will_anger_monster(monsters *mon, bool *holy,
const bool isLawful =
(you.religion == GOD_ZIN && mon->is_chaotic());
const bool isAntimagical =
- (you.religion == GOD_TROG && mon->is_magic_user());
+ (you.religion == GOD_TROG && mon->is_actual_spellcaster());
if (holy)
*holy = isHoly;