summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-07 22:24:48 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-07 22:24:48 -0600
commit4915a3d61f5c92669121713d4744fb60036dac2f (patch)
tree5a35d090d5b236da9dfca1c4e5ab8ab09aac32a1 /crawl-ref/source/fight.cc
parent6b3f882a81bae89affecdcba5e24df1fb51e8cf4 (diff)
downloadcrawl-ref-4915a3d61f5c92669121713d4744fb60036dac2f.tar.gz
crawl-ref-4915a3d61f5c92669121713d4744fb60036dac2f.zip
Remove mons_is_holy(), as it's redundant.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 0b51df6ad6..a928168445 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2338,7 +2338,7 @@ void melee_attack::chaos_affects_defender()
const bool immune = mon && mons_immune_magic(defender_as_monster());
const bool is_natural = mon && defender->holiness() == MH_NATURAL;
const bool is_shifter = mon && mons_is_shapeshifter(defender_as_monster());
- const bool can_clone = mon && !mons_is_holy(defender_as_monster())
+ const bool can_clone = mon && defender->holiness() == MH_HOLY
&& mons_clonable(defender_as_monster(), true);
const bool can_poly = is_shifter || (defender->can_safely_mutate()
&& !immune);