From 9d183aa841a13505fa057184c70f96406024e52d Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sat, 7 Nov 2009 17:25:16 -0800 Subject: Bug 2891630: hogs awlays revert to humans If Kirke turned a monster into a hog, it would always revert into a human, regardless of what it originally was. Now it remembers the original form. It has some problems (noted in _hogs_to_humans()), but since they turn neutral on reverting these problems shouldn't affect gameplay too much. --- crawl-ref/source/beam.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 365cf050bd..a89f3c2c16 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -5303,12 +5303,16 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon) return (MON_AFFECTED); case BEAM_PORKALATOR: + { + monster_type orig_type = mon->type; if (monster_polymorph(mon, (mon->holiness() == MH_DEMONIC ? MONS_HELL_HOG : MONS_HOG))) { obvious_effect = true; } + mon->number = ((int) orig_type + 1); return (MON_AFFECTED); + } default: break; -- cgit v1.2.3-54-g00ecf