Skip to content

Commit

Permalink
Allow being unpunished (ball & chain) if poly'd into monster with no …
Browse files Browse the repository at this point in the history
…limbs.

From EvilHack commit 6f212d62f39
  • Loading branch information
elunna committed Sep 22, 2023
1 parent f18bad8 commit 09c31f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/polyself.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 09c31f5

Please sign in to comment.