From 9ad85435681ad82c7ef07d2083e40e525e2b0f55 Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Wed, 4 Nov 2009 20:09:46 +0530 Subject: Allow vaults to override monster spells with spells: Vaults can now override monster spell sets, or give non-casting monsters spells, and mark monsters as wizard or priest types. The M_ACTUAL_SPELLS, M_SPELLCASTER and M_PRIEST monster class flags are converted into MF_* flags at monster creation/polymorph time, and only the per-monster flags are checked when determining wizard/priestliness. See caveats in level_design.txt. --- crawl-ref/source/describe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 612de87d5b..6d5b42bf67 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2905,7 +2905,7 @@ void get_monster_db_desc(const monsters& mons, describe_info &inf, inf.quote += quote2; #if DEBUG_DIAGNOSTICS - if (mons_class_flag( mons.type, M_SPELLCASTER )) + if (mons.can_use_spells()) { const monster_spells &hspell_pass = mons.spells; bool found_spell = false; -- cgit v1.2.3-54-g00ecf