summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-08 13:19:54 -0400
committerNeil Moore <neil@s-z.org>2014-07-08 13:20:09 -0400
commit25feac74e3720da0fff451a2ac4e8ca798edbdb9 (patch)
tree9fd005bb80457ea85dbad9a06217d78f87819dce /crawl-ref/source/mon-cast.cc
parent071ec8e79a4d89f7edda0df209b438f864edb5a7 (diff)
downloadcrawl-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.cc5
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;
+ }
}
}