summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.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/monster.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/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index ab4c212706..ae61c51364 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -3855,11 +3855,6 @@ bool monsters::is_actual_spellcaster() const
return (flags & MF_ACTUAL_SPELLS);
}
-bool monsters::is_magic_user() const
-{
- return (is_actual_spellcaster() && has_spells());
-}
-
bool monsters::is_shapeshifter() const
{
return (has_ench(ENCH_GLOWING_SHAPESHIFTER, ENCH_SHAPESHIFTER));