Merge branch 'NetHack-3.6'

This commit is contained in:
nhmall
2019-11-02 01:58:32 -04:00
10 changed files with 190 additions and 182 deletions

View File

@@ -589,7 +589,7 @@ unleash_all()
* This ought to exclude various other things, such as lights and gas
* spore, is_whirly() critters, ethereal creatures, possibly others.
*/
static boolean
boolean
leashable(mtmp)
struct monst *mtmp;
{

View File

@@ -3771,6 +3771,9 @@ boolean msg; /* "The oldmon turns into a newmon!" */
/* take on the new form... */
set_mon_data(mtmp, mdat);
if (!leashable(mtmp))
m_unleash(mtmp, TRUE);
if (emits_light(olddata) != emits_light(mtmp->data)) {
/* used to give light, now doesn't, or vice versa,
or light's range has changed */