From e72dbb7c59c35439265e96eb478e4aca7a3c1ed6 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Tue, 31 Dec 2002 03:30:33 +0000 Subject: [PATCH] buglist fix: gnomish wizard wrote: If you polymorph into a gnomish wizard (even if you *are* a gnomish wizard), you shrink out of your armour. --- doc/fixes34.1 | 3 +++ src/polyself.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 7f4b55ff1..1424ce82e 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/polyself.c b/src/polyself.c index 21e43cd16..bd58398a6 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -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; -- 2.40.0