diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-07 17:25:16 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-07 17:25:16 -0800 |
commit | 9d183aa841a13505fa057184c70f96406024e52d (patch) | |
tree | 57187cf28133e7added6084bfbbb7d9980c65b1a /crawl-ref/source/beam.cc | |
parent | b33014e5510ddaf3a5088c934bbb53aa406b451c (diff) | |
download | crawl-ref-9d183aa841a13505fa057184c70f96406024e52d.tar.gz crawl-ref-9d183aa841a13505fa057184c70f96406024e52d.zip |
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.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |