summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index f6399bd8a7..ee0d6cb880 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2770,7 +2770,7 @@ static bool _make_zombie(monsters* mon, int corpse_class, int corpse_index,
mitm[last_item].link = idx;
animate_remains(mon->pos(), CORPSE_BODY, mon->behaviour,
- mon->foe, mon->god, true, true, &zombie_index);
+ mon->foe, mon->god, true, true, true, &zombie_index);
}
// No equipment to get, or couldn't get it for some reason.
@@ -2781,7 +2781,7 @@ static bool _make_zombie(monsters* mon, int corpse_class, int corpse_index,
zombie_index = create_monster(
mgen_data(type, mon->behaviour, 0, 0, mon->pos(),
mon->foe, MG_FORCE_PLACE, mon->god,
- (monster_type) mon->type, mon->number));
+ mon->type, mon->number));
}
if (zombie_index == -1)
@@ -2809,6 +2809,8 @@ static bool _make_zombie(monsters* mon, int corpse_class, int corpse_index,
autotoggle_autopickup(false);
}
+ player_angers_monster(zombie);
+
return (true);
}