From 6af26751e6409bc26872a0ef585b2c4f9917f1e7 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 1 Feb 2023 21:38:26 +0200 Subject: [PATCH] Monsters never try to pick up ball or chain Apparently my m_move reorg made it possible for monsters to pick up the chain attached to hero; explicitly prevent that. --- src/monmove.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/monmove.c b/src/monmove.c index 0e70a2c62..ee087099a 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -849,6 +849,8 @@ mon_would_take_item(struct monst *mtmp, struct obj *otmp) { int pctload = (curr_mon_load(mtmp) * 100) / max_mon_load(mtmp); + if (otmp == uball || otmp == uchain) + return FALSE; if (is_unicorn(mtmp->data) && objects[otmp->otyp].oc_material != GEMSTONE) return FALSE; if (!mindless(mtmp->data) && !is_animal(mtmp->data) && pctload < 75 -- 2.50.1