From 09c31f57808df593cb0ccb40d93d64a9cd418907 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Fri, 22 Sep 2023 07:17:12 +0200 Subject: [PATCH] Allow being unpunished (ball & chain) if poly'd into monster with no limbs. From EvilHack commit 6f212d62f39 --- src/polyself.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/polyself.c b/src/polyself.c index 64bfd17eb..ce9aba2d5 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -1008,9 +1008,11 @@ int mntmp; reset_utrap(TRUE); } if (amorphous(youmonst.data) || is_whirly(youmonst.data) - || unsolid(youmonst.data)) { + || unsolid(youmonst.data) || nolimbs(youmonst.data)) { if (Punished) { - You("slip out of the iron chain."); + You("%s out of the iron chain.", + (nolimbs(youmonst.data) + && youmonst.data->msize > MZ_MEDIUM) ? "break" : "slip"); unpunish(); } else if (u.utrap && u.utraptype == TT_BURIEDBALL) { You("slip free of the buried ball and chain.");