fix monster summoning message
From a bug report: > If the Summon Nasties monster spell gates in two minions instead of one, > the message still says "A monster appears from nowhere!" The code wasn't counting any summoned monsters who had an opposite alignment to the summoner. It also assumed that the 10% chance for demon summoning in Gehennom always yielded exactly one monster even though that can produce zero or more than one.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mhitu.c 3.4 2004/11/11 */
|
||||
/* SCCS Id: @(#)mhitu.c 3.4 2004/12/20 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -471,7 +471,7 @@ mattacku(mtmp)
|
||||
&& mtmp->data != &mons[PM_BALROG]
|
||||
&& mtmp->data != &mons[PM_SUCCUBUS]
|
||||
&& mtmp->data != &mons[PM_INCUBUS])
|
||||
if(!mtmp->mcan && !rn2(13)) msummon(mtmp);
|
||||
if (!mtmp->mcan && !rn2(13)) (void)msummon(mtmp);
|
||||
|
||||
/* Special lycanthrope handling code */
|
||||
if((mtmp->cham == CHAM_ORDINARY) && is_were(mdat) && !range2) {
|
||||
|
||||
Reference in New Issue
Block a user