summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-07 18:27:27 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-07 18:27:27 -0800
commitce06b541a0bfac12ac225c526cf9a47053669232 (patch)
tree2902ca04594729281db12ba203366126f9d42752 /crawl-ref/source/beam.cc
parent52b47e9dd004853b02eee608b0e023dd2011e1d0 (diff)
downloadcrawl-ref-ce06b541a0bfac12ac225c526cf9a47053669232.tar.gz
crawl-ref-ce06b541a0bfac12ac225c526cf9a47053669232.zip
beam.cc: don't porkulate ghost-using monsters
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index a89f3c2c16..7126888288 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -5304,6 +5304,11 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon)
case BEAM_PORKALATOR:
{
+ // Monster's which use the ghost structure can't be properly
+ // restored from hog form.
+ if (mons_is_ghost_demon(mon->type))
+ return (MON_UNAFFECTED);
+
monster_type orig_type = mon->type;
if (monster_polymorph(mon, (mon->holiness() == MH_DEMONIC ?
MONS_HELL_HOG : MONS_HOG)))