summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 7c19f33153..3044c39009 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -455,11 +455,17 @@ static int raise_corpse( int corps, int corx, int cory,
type = MONS_SKELETON_LARGE;
}
+ const int number =
+ mitm[corps].props.exists(MONSTER_NUMBER)
+ ? mitm[corps].props[MONSTER_NUMBER].get_short()
+ : 0;
+
create_monster(
mgen_data(
type, corps_beh, 0,
coord_def(corx, cory), corps_hit,
- 0, static_cast<monster_type>(mitm[corps].plus)));
+ 0, static_cast<monster_type>(mitm[corps].plus),
+ number));
destroy_item(corps);
}