From 365440853b43c0b322fda3cab0fc5f8caa2263e1 Mon Sep 17 00:00:00 2001 From: cohrs Date: Thu, 5 Oct 2006 06:47:39 +0000 Subject: [PATCH] U856 - cockatrice and nurses One from the way-back machine. A nurse would hit you-as-cockatrice repeatedly and never turned to stone. With this change, nurses will turn to stone (and also don't heal cockatrices, which seems fair). I considered giving them gloves, but that seemed like too much effort. There are other cases where a monster "hits" but will not petrify. However, it doesn't seem like passiveum detects all the specific ways the monster "hit" you so I left them alone. --- doc/fixes35.0 | 1 + src/mhitu.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 33aa9918f..24ef68434 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -160,6 +160,7 @@ make changes in hallucination be reflected by changes in mimickery feedback add Unaware pseudo-property to suppress various messages while unconscious missile which kills engulfer will now be placed prior to hero's return to map bugles affect all monsters to some extent +nurses are affected if player is polymorphed as a cockatrice Platform- and/or Interface-Specific Fixes diff --git a/src/mhitu.c b/src/mhitu.c index 798fab331..c54a98efc 100644 --- a/src/mhitu.c +++ b/src/mhitu.c @@ -1335,8 +1335,9 @@ dopois: hurtarmor(AD_DCAY); break; case AD_HEAL: - /* a cancelled nurse is just an ordinary monster */ - if (mtmp->mcan) { + /* a cancelled nurse is just an ordinary monster, + * nurses don't heal those that cause petrification */ + if (mtmp->mcan || (Upolyd && touch_petrifies(youmonst.data))) { hitmsg(mtmp, mattk); break; } -- 2.40.0