summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-05-05 17:45:26 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-05-05 17:47:55 -0400
commitf5d7e1195ccb3df16f5ad6341810bc259f51c611 (patch)
tree06a5031da0905d445b3f0a3cd8cef1ff8ba7ed7e /crawl-ref/source/mapdef.cc
parent8b0589b2b84b012d14d5e95f6c54ddbcd71c88db (diff)
downloadcrawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.tar.gz
crawl-ref-f5d7e1195ccb3df16f5ad6341810bc259f51c611.zip
Abstractify.
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index f89650cc17..7929d57729 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -4292,9 +4292,7 @@ mons_spec mons_list::drac_monspec(string name) const
// We should have a non-base draconian here.
if (spec.type == MONS_PROGRAM_BUG
|| mons_genus(static_cast<monster_type>(spec.type)) != MONS_DRACONIAN
- || spec.type == MONS_DRACONIAN
- || (spec.type >= MONS_BLACK_DRACONIAN
- && spec.type <= MONS_PALE_DRACONIAN))
+ || mons_is_base_draconian(spec.type))
{
return MONS_PROGRAM_BUG;
}