]> granicus.if.org Git - nethack/commitdiff
wishing for magenta potions
authorarromdee <arromdee>
Thu, 17 Apr 2003 02:21:16 +0000 (02:21 +0000)
committerarromdee <arromdee>
Thu, 17 Apr 2003 02:21:16 +0000 (02:21 +0000)
Reported on the net.

doc/fixes34.2
src/objnam.c

index 962dd236c8a52cb4673c4886c7b1e942f374bcd8..ea0426ae493f0c2b46af86b28d795f83b154c498 100644 (file)
@@ -41,6 +41,7 @@ avoid impossible when water freezes while hero is hiding under water
 avoid impossible after eating the object the hero is hiding under
 failed attempt to eat floor gold while polymorphed would lose the gold
 running that stops for closed doors should stop at mimics mimicking closed doors
+allow wishing for magenta potions (ignoring the rank name 'mage')
 
 
 Platform- and/or Interface-Specific Fixes
index 3588a17b7282a08cca3c7ed966b930246e2c5e5f..30052f91a56ea824d99bf5dd3a81faee921e8074 100644 (file)
@@ -1948,6 +1948,7 @@ boolean from_user;
        if (strncmpi(bp, "wizard lock", 11)) /* not the "wizard" monster! */
        if (strncmpi(bp, "ninja-to", 8)) /* not the "ninja" rank */
        if (strncmpi(bp, "master key", 10)) /* not the "master" rank */
+       if (strncmpi(bp, "magenta", 7)) /* not the "mage" rank */
        if (mntmp < LOW_PM && strlen(bp) > 2 &&
            (mntmp = name_to_mon(bp)) >= LOW_PM) {
                int mntmptoo, mntmplen; /* double check for rank title */