demon summoning using wrong alignment
make msummon pass along A_NONE, allowing summoning of any demon, not just chaotic ones
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) :
|
||||
|
||||
Reference in New Issue
Block a user