Fake leash object is not attached

When farlooking at a fake leash object, make it explicitly not
be attached to a monster.
This commit is contained in:
Pasi Kallinen
2018-12-05 22:35:59 +02:00
parent 95a6c458bc
commit 6e0a9cad5a

View File

@@ -187,6 +187,8 @@ struct obj **obj_p;
otmp->quan = 2L; /* to force pluralization */
else if (otmp->otyp == SLIME_MOLD)
otmp->spe = context.current_fruit; /* give it a type */
else if (otmp->otyp == LEASH)
otmp->leashmon = 0;
if (mtmp && has_mcorpsenm(mtmp)) /* mimic as corpse/statue */
otmp->corpsenm = MCORPSENM(mtmp);
else if (otmp->otyp == CORPSE && glyph_is_body(glyph))