]> granicus.if.org Git - nethack/commitdiff
Shapechangers got a completely random form
authorPasi Kallinen <paxed@alt.org>
Sun, 14 Jun 2015 07:40:20 +0000 (10:40 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 14 Jun 2015 07:40:25 +0000 (10:40 +0300)
mtmp->cham was NON_PM, which select_newcham_form interpreted as a completely
random form.  This also resulted Vlad getting a random shape, and not getting
the Candelabrum, making the game unwinnable.

src/makemon.c

index 5aea3392de22ee9e39757243cb3b5b2107684c95..c200c21bf302b26f2799cccfeaf943be59452b05 100644 (file)
@@ -1134,6 +1134,7 @@ register int mmflags;
     mtmp->cham = NON_PM; /* default is "not a shapechanger" */
     if ((mcham = pm_to_cham(mndx)) != NON_PM) {
         /* this is a shapechanger after all */
+        mtmp->cham = mcham;
         if (Protection_from_shape_changers
             || mtmp->cham == PM_VLAD_THE_IMPALER) {
             ; /* stuck in its natural form (NON_PM) */