buglist fix: gnomish wizard

<Someone> wrote: If you polymorph into a gnomish wizard (even if you *are* a gnomish
wizard), you shrink out of your armour.
This commit is contained in:
nethack.allison
2002-12-31 03:30:33 +00:00
parent 97bc9a321e
commit e72dbb7c59
2 changed files with 4 additions and 1 deletions

View 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;