From b84750cf46f3a1eb537960085bc0a25f140d760d Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 18 Jan 2009 02:31:37 +0000 Subject: Check for cleansing flame resistance in bolt::nasty_to(), since it's the one non-enchantment that may not be nasty to monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8528 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index d38fc3f648..206ebcf2c7 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -5348,7 +5348,11 @@ void bolt::determine_affected_cells(explosion_map& m, const coord_def& delta, // straightforward. bool bolt::nasty_to(const monsters *mon) const { - // Take care of non-enchantments. + // Cleansing flame. + if (flavour == BEAM_HOLY) + return (mon->res_cleansing_flame(agent()) <= 0); + + // Take care of other non-enchantments. if (!is_enchantment()) return (true); -- cgit v1.2.3-54-g00ecf