]> granicus.if.org Git - nethack/commitdiff
Reverse the unique requirement
authorPasi Kallinen <paxed@alt.org>
Sun, 3 Apr 2022 05:55:09 +0000 (08:55 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 3 Apr 2022 05:55:09 +0000 (08:55 +0300)
src/trap.c

index 74a55f7c2b89f6cfd4bcdff8029a252afc935a9a..e218afd64b3c765a3f0a77383b5c28ae4c440737 100644 (file)
@@ -4704,7 +4704,7 @@ reward_untrap(struct trap* ttmp, struct monst* mtmp)
     if (!ttmp->madeby_u) {
         if (rnl(10) < 8 && !mtmp->mpeaceful && !helpless(mtmp)
             && !mtmp->mfrozen && !mindless(mtmp->data)
-            && unique_corpstat(mtmp->data)
+            && !unique_corpstat(mtmp->data)
             && mtmp->data->mlet != S_HUMAN) {
             mtmp->mpeaceful = 1;
             set_malign(mtmp); /* reset alignment */