From ce06b541a0bfac12ac225c526cf9a47053669232 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sat, 7 Nov 2009 18:27:27 -0800 Subject: beam.cc: don't porkulate ghost-using monsters --- crawl-ref/source/beam.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/beam.cc') 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))) -- cgit v1.2.3-54-g00ecf