]> granicus.if.org Git - nethack/commitdiff
Knights get no caitiff penalty against undead
authorPasi Kallinen <paxed@alt.org>
Fri, 18 Feb 2022 19:29:31 +0000 (21:29 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 18 Feb 2022 19:29:31 +0000 (21:29 +0200)
doc/fixes3-7-0.txt
src/uhitm.c

index 2b8355bd68201ed682439aa4536e19b2aab19f2c..1d692a7f883c615aefb24e9f094141078e513b88 100644 (file)
@@ -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
index 63141a423fd177d125c0eed012aef18dd131d89e..9f7125e68246c5d15f813c228c1a878820343589 100644 (file)
@@ -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!");