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:
cohrs
2002-02-06 06:56:53 +00:00
parent ca7de91dc6
commit 5cff91fadf
2 changed files with 2 additions and 1 deletions

View 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) :