projects
/
nethack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72dbb7
)
gnomish wizard follow-up
author
nethack.allison
<nethack.allison>
Tue, 31 Dec 2002 03:48:03 +0000
(
03:48
+0000)
committer
nethack.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
patch
|
blob
|
history
diff --git
a/src/polyself.c
b/src/polyself.c
index bd58398a6c46f90d07712b44be991d4fa0dcabcf..ed267aceb4f9310a335daba7fc8c90e9556d66ca 100644
(file)
--- a/
src/polyself.c
+++ b/
src/polyself.c
@@
-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;