]> granicus.if.org Git - nethack/commitdiff
demon summoning using wrong alignment
authorcohrs <cohrs>
Wed, 6 Feb 2002 06:56:53 +0000 (06:56 +0000)
committercohrs <cohrs>
Wed, 6 Feb 2002 06:56:53 +0000 (06:56 +0000)
make msummon pass along A_NONE, allowing summoning of any demon, not just
chaotic ones

doc/fixes34.0
src/minion.c

index bbdee78ef5f23fc8a83b072c8b6742b674a9f0ff..a67a79f9b77c877644b07217dc47191de96510af 100644 (file)
@@ -420,6 +420,7 @@ prefixes that can appear in any order when wishing should include +/- and empty
 word-order in wishes, allow "blessed +2 fireproof", not just 
        "blessed fireproof +2"
 don't allow untrapping of adjacent traps in locations you can't move to
+summoning should summon any alignment if summoner's base alignment is A_NONE
 
 
 Platform- and/or Interface-Specific Fixes
index 9f701878e9c7abece6db7ddcae84a671cd40e2d1..2dfd0d1dcf381da242a13ed6f31bcde946a8743c 100644 (file)
@@ -11,7 +11,7 @@ msummon(ptr)          /* ptr summons a monster */
 register struct permonst *ptr;
 {
        register int dtype = NON_PM, cnt = 0;
-       aligntyp atyp = sgn(ptr->maligntyp);
+       aligntyp atyp = (ptr->maligntyp==A_NONE) ? A_NONE : sgn(ptr->maligntyp);
 
        if (is_dprince(ptr) || (ptr == &mons[PM_WIZARD_OF_YENDOR])) {
            dtype = (!rn2(20)) ? dprince(atyp) :