]> granicus.if.org Git - nethack/commitdiff
buglist fix: gnomish wizard
authornethack.allison <nethack.allison>
Tue, 31 Dec 2002 03:30:33 +0000 (03:30 +0000)
committernethack.allison <nethack.allison>
Tue, 31 Dec 2002 03:30:33 +0000 (03:30 +0000)
<Someone> wrote: If you polymorph into a gnomish wizard (even if you *are* a gnomish
wizard), you shrink out of your armour.

doc/fixes34.1
src/polyself.c

index 7f4b55ff17bad14d2db9077de6647d4b9b89e08c..1424ce82e11e4f902ea92ee7f9abd187c6bac890 100644 (file)
@@ -340,6 +340,9 @@ removing a ring of levitation while engulfed should not invoke spoteffects
 feedback from invoking Orb of Detection was sometimes misleading or wrong
 ranger quest artifact (Longbow of Diana) confers reflection when wielded by
        monsters like it does for the player
+avoid discrepancies in size and associated armor-wearing ability between 
+       wizard gnome player and same player polymorphed into gnomish wizard 
+       by forcing newman() if poly-target matches your_race()
 
 
 Platform- and/or Interface-Specific Fixes
index 21e43cd16125a9dfa0aac4422ecc0c96708eff75..bd58398a6c46f90d07712b44be991d4fa0dcabcf 100644 (file)
@@ -306,7 +306,7 @@ 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))
+       if (!polyok(&mons[mntmp]) || !rn2(5) || your_race(&mons[mntmp]))
                newman();
        else if(!polymon(mntmp)) return;