]> granicus.if.org Git - nethack/commitdiff
gnomish wizard follow-up
authornethack.allison <nethack.allison>
Tue, 31 Dec 2002 03:48:03 +0000 (03:48 +0000)
committernethack.allison <nethack.allison>
Tue, 31 Dec 2002 03:48:03 +0000 (03:48 +0000)
Limit the race restriction to gnomes  to avoid
unanticipated problems with other species.

src/polyself.c

index bd58398a6c46f90d07712b44be991d4fa0dcabcf..ed267aceb4f9310a335daba7fc8c90e9556d66ca 100644 (file)
@@ -306,7 +306,8 @@ boolean forcecontrol;
        /* The below polyok() fails either if everything is genocided, or if
         * we deliberately chose something illegal to force newman().
         */
-       if (!polyok(&mons[mntmp]) || !rn2(5) || your_race(&mons[mntmp]))
+       if (!polyok(&mons[mntmp]) || !rn2(5)
+               || (Race_if(PM_GNOME) && your_race(&mons[mntmp])))
                newman();
        else if(!polymon(mntmp)) return;