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.
This commit is contained in:
cohrs
2006-10-05 06:47:39 +00:00
parent 4ba3b7da34
commit 365440853b
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}