summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 91a9c88d47..744a90480f 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4734,8 +4734,10 @@ mon_resist_type bolt::try_enchant_monster(monsters *mon)
{
if (mons_immune_magic(mon))
return (MON_UNAFFECTED);
- if (check_mons_resist_magic(mon, ench_power))
- return (MON_RESIST);
+
+ if (flavour != BEAM_POLYMORPH || !mons_is_shapeshifter(mon))
+ if (check_mons_resist_magic(mon, ench_power))
+ return (MON_RESIST);
}
return (apply_enchantment_to_monster(mon));