diff options
author | Neil Moore <neil@s-z.org> | 2014-07-08 13:19:54 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-08 13:20:09 -0400 |
commit | 25feac74e3720da0fff451a2ac4e8ca798edbdb9 (patch) | |
tree | 9fd005bb80457ea85dbad9a06217d78f87819dce /crawl-ref/source/mon-cast.cc | |
parent | 071ec8e79a4d89f7edda0df209b438f864edb5a7 (diff) | |
download | crawl-ref-25feac74e3720da0fff451a2ac4e8ca798edbdb9.tar.gz crawl-ref-25feac74e3720da0fff451a2ac4e8ca798edbdb9.zip |
Allow specifying spells:melee in monster specs.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r-- | crawl-ref/source/mon-cast.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc index 188e5ef173..0a314c1d11 100644 --- a/crawl-ref/source/mon-cast.cc +++ b/crawl-ref/source/mon-cast.cc @@ -91,8 +91,11 @@ void init_mons_spells() if (!is_valid_spell(spell)) continue; - if (setup_mons_cast(&fake_mon, pbolt, spell, true)) + if (spell == SPELL_MELEE + || setup_mons_cast(&fake_mon, pbolt, spell, true)) + { _valid_mon_spells[i] = true; + } } } |