summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-26 03:22:54 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-26 03:22:54 +0000
commit47a9f623f76c9e9186b54b42d9d7ec0f683b469f (patch)
tree4402ab03f4d85024e6a082773e2f0258d2641d8b /crawl-ref/source/beam.cc
parentd16ed1201876132b39d151da6877de997da67912 (diff)
downloadcrawl-ref-47a9f623f76c9e9186b54b42d9d7ec0f683b469f.tar.gz
crawl-ref-47a9f623f76c9e9186b54b42d9d7ec0f683b469f.zip
And generalize them a bit more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4651 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index bc89d8d296..69db2e76e9 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4215,13 +4215,13 @@ static int _affect_monster_enchantment(bolt &beam, monsters *mon)
if (beam.flavour == BEAM_POLYMORPH)
{
- if (mons_holiness( mon ) != MH_NATURAL)
+ if (!mon->can_mutate())
return (MON_UNAFFECTED);
if (check_mons_resist_magic( mon, beam.ench_power ))
return mons_immune_magic(mon) ? MON_UNAFFECTED : MON_RESIST;
- if (monster_polymorph(mon, RANDOM_MONSTER))
+ if (mon->mutate())
beam.obvious_effect = true;
if (YOU_KILL(beam.thrower))