summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-06 15:10:53 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-06 15:10:53 +1000
commitd8e6385908a20759971c30898b5b52da811cbd00 (patch)
treebf7644b26bf2dcaaf4204a7490ebbf1f19c17744 /crawl-ref/source/monster.cc
parent941d1b59deee66379b6f060ed4cf5fc0cf35b817 (diff)
downloadcrawl-ref-d8e6385908a20759971c30898b5b52da811cbd00.tar.gz
crawl-ref-d8e6385908a20759971c30898b5b52da811cbd00.zip
Don't let ugly things heal when changing colour.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index b3a0ba7522..75667278e8 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -3729,14 +3729,14 @@ void monsters::ghost_init()
void monsters::uglything_init(bool only_mutate)
{
// If we're mutating an ugly thing, leave its experience level, hit
- // dice and maximum hit points as they are.
+ // dice and maximum and current hit points as they are.
if (!only_mutate)
{
hit_dice = ghost->xl;
max_hit_points = ghost->max_hp;
+ hit_points = max_hit_points;
}
- hit_points = max_hit_points;
ac = ghost->ac;
ev = ghost->ev;
speed = ghost->speed;