diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 2c429a4a4..b221e4803 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -141,6 +141,7 @@ don't suppress corpse if you kill your own steed fix typo in tourist quest leader's greeting fix grammar for graveyard sounds when polymorphed avoid divide by zero crash if Luck drops below -1 while a prayer is in progress +make hero inflicted with lycanthropy immune to level drain just like monsters Platform- and/or Interface-Specific Fixes diff --git a/src/mondata.c b/src/mondata.c index 80513a959..5f7d2ce80 100644 --- a/src/mondata.c +++ b/src/mondata.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)mondata.c 3.5 2005/01/29 */ +/* SCCS Id: @(#)mondata.c 3.5 2005/09/01 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -82,6 +82,8 @@ struct monst *mon; struct obj *wep = ((mon == &youmonst) ? uwep : MON_WEP(mon)); return (boolean)(is_undead(ptr) || is_demon(ptr) || is_were(ptr) || + /* is_were() doesn't handle hero in human form */ + (mon == &youmonst && u.ulycn >= LOW_PM) || ptr == &mons[PM_DEATH] || is_vampshifter(mon) || (wep && wep->oartifact && defends(AD_DRLI, wep))); }