summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.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/monstuff.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/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index e6f7ef6f6a..82788f6b40 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1686,7 +1686,7 @@ int monster_die(monsters *monster, killer_type killer,
}
// jmf: Trog hates wizards.
- if (monster->is_magic_user())
+ if (monster->is_actual_spellcaster())
{
did_god_conduct(DID_KILL_WIZARD,
monster->hit_dice, true, monster);