Fix unleashable message given for non-leashed monster

This commit is contained in:
Pasi Kallinen
2019-11-04 18:58:22 +02:00
parent 93f95dd051
commit efbef0f22c

View File

@@ -3762,7 +3762,7 @@ boolean msg; /* "The oldmon turns into a newmon!" */
/* take on the new form... */
set_mon_data(mtmp, mdat);
if (!leashable(mtmp))
if (mtmp->mleashed && !leashable(mtmp))
m_unleash(mtmp, TRUE);
if (emits_light(olddata) != emits_light(mtmp->data)) {