diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-06 19:49:41 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-06 19:50:29 -0800 |
commit | 3807330ab546425a7f2fc63cb3f731ade3684011 (patch) | |
tree | 3578a12831052cf52cd4c549eeca27f440e54efc /crawl-ref/source/mon-cast.h | |
parent | e665413aeb03054dccc48104ee4bbeb73e4fffc1 (diff) | |
download | crawl-ref-3807330ab546425a7f2fc63cb3f731ade3684011.tar.gz crawl-ref-3807330ab546425a7f2fc63cb3f731ade3684011.zip |
mon-cast: fix is_valid_mon_spell()
is_valid_mon_spell() should now correctly return true for non-targetted
monster spells.
Diffstat (limited to 'crawl-ref/source/mon-cast.h')
-rw-r--r-- | crawl-ref/source/mon-cast.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-cast.h b/crawl-ref/source/mon-cast.h index 6d7d023abc..390f563875 100644 --- a/crawl-ref/source/mon-cast.h +++ b/crawl-ref/source/mon-cast.h @@ -22,7 +22,8 @@ bolt mons_spells(monsters *mons, spell_type spell_cast, int power, void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, bool do_noise = true); void mons_cast_noise(monsters *monster, bolt &pbolt, spell_type spell_cast); -void setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast); +bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, + bool check_validity = false); void mons_cast_haunt(monsters *monster); |