diff options
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index a9e0ee0412..402652713e 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -30,6 +30,7 @@ #include "mapmark.h" #include "maps.h" #include "misc.h" +#include "mon-cast.h" #include "monplace.h" #include "mon-util.h" #include "place.h" @@ -2368,6 +2369,12 @@ void mons_list::parse_mons_spells(mons_spec &spec, const std::string &spells) spname.c_str(), spells.c_str()); return; } + if (!is_valid_mon_spell(sp)) + { + error = make_stringf("Not a monster spell: '%s'", + spname.c_str()); + return; + } spec.spells[i] = sp; } } |