Merge branch 'NetHack-3.6'
This commit is contained in:
@@ -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;
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user