From: Pasi Kallinen Date: Fri, 18 Feb 2022 19:29:31 +0000 (+0200) Subject: Knights get no caitiff penalty against undead X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd14456b020ad6316f046a240fabe8dc6d3da71c;p=nethack Knights get no caitiff penalty against undead --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 2b8355bd6..1d692a7f8 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -784,6 +784,7 @@ use silly names for rays (such as breath weapons) when hallucinating zombies groan instead of being silent martial arts users, sasquatches, and heroes wearing kicking boots can no longer miss a monster completely with a clumsy kick +knights get no caitiff penalty against undead Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/uhitm.c b/src/uhitm.c index 63141a423..9f7125e68 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -268,6 +268,7 @@ check_caitiff(struct monst *mtmp) return; if (Role_if(PM_KNIGHT) && u.ualign.type == A_LAWFUL + && !is_undead(mtmp->data) && (!mtmp->mcanmove || mtmp->msleeping || (mtmp->mflee && !mtmp->mavenge))) { You("caitiff!");