summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godwrath.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 12:42:03 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 12:42:03 -0600
commit777fefa8f1af43ad3836e442b2f478e2e68ed621 (patch)
treed7e17f4364d102b6f60c3910f8fe709765e7c308 /crawl-ref/source/godwrath.cc
parenta8e32820e3c5e721486f8baf42b58e63b00e6c07 (diff)
downloadcrawl-ref-777fefa8f1af43ad3836e442b2f478e2e68ed621.tar.gz
crawl-ref-777fefa8f1af43ad3836e442b2f478e2e68ed621.zip
Ensure that Yred's hostile skeletons are valid skeleton types.
Diffstat (limited to 'crawl-ref/source/godwrath.cc')
-rw-r--r--crawl-ref/source/godwrath.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/godwrath.cc b/crawl-ref/source/godwrath.cc
index 3243efd929..5a9ec116c0 100644
--- a/crawl-ref/source/godwrath.cc
+++ b/crawl-ref/source/godwrath.cc
@@ -47,11 +47,11 @@ static bool _tso_holy_revenge();
static bool _yred_random_zombified_hostile()
{
- const bool skel = one_chance_in(4);
-
monster_type z_type = MONS_PROGRAM_BUG;
monster_type z_base = pick_random_zombie();
+ const bool skel = mons_skeleton(z_base) && one_chance_in(4);
+
if (mons_zombie_size(z_base) == Z_BIG)
z_type = skel ? MONS_SKELETON_LARGE : MONS_ZOMBIE_LARGE;
else