Shapechangers got a completely random form

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.
This commit is contained in:
Pasi Kallinen
2015-06-14 10:40:20 +03:00
parent 87c22180f2
commit 0c3ee5025e

View 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) */