]> granicus.if.org Git - nethack/commitdiff
#offer bit (trunk only)
authornethack.rankin <nethack.rankin>
Fri, 15 Dec 2006 05:25:51 +0000 (05:25 +0000)
committernethack.rankin <nethack.rankin>
Fri, 15 Dec 2006 05:25:51 +0000 (05:25 +0000)
     Refine a recent change:  Moloch should only have a chance to blast
you for offering the Amulet at an ordinary altar (instead of high altar)
when you're still in Gehennom (Orcus' Level or Valley of the Dead), not at
the unaligned altars in a couple of quests.

src/pray.c

index 7c4963fca792a4baefcc2044fa24e073b986ddd9..7264e7bc035d402781435ad327cb1a9d15bd5c36 100644 (file)
@@ -1309,9 +1309,10 @@ dosacrifice()
     if (otmp->otyp == AMULET_OF_YENDOR) {
        if (!highaltar) {
  too_soon:
-           if (altaralign == A_NONE)
+           if (altaralign == A_NONE && Inhell) 
                /* hero has left Moloch's Sanctum so is in the process
-                  of getting away with the Amulet */
+                  of getting away with the Amulet (outside of Gehennom,
+                  fall through to the "ashamed" feedback) */
                gods_upset(A_NONE);
            else
                You_feel("%s.", Hallucination ? "homesick" :