gnomish wizard follow-up

Limit the race restriction to gnomes  to avoid
unanticipated problems with other species.
This commit is contained in:
nethack.allison
2002-12-31 03:48:03 +00:00
parent e72dbb7c59
commit a349b60743

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