class differentiation bit (trunk only)

Healers pick up on the fact that a wand of undead turning
revived a creature.
This commit is contained in:
nethack.allison
2003-10-25 22:20:24 +00:00
parent cd7e1163e1
commit b4c2f74c22
3 changed files with 45 additions and 1 deletions

View File

@@ -1559,8 +1559,27 @@ struct obj *obj, *otmp;
case SPE_TURN_UNDEAD:
if (obj->otyp == EGG)
revive_egg(obj);
else
else {
int corpsenm = (obj->otyp == CORPSE) ?
corpse_revive_type(obj) : 0;
res = !!revive(obj);
if (res && corpsenm && Role_if(PM_HEALER)) {
boolean u_noticed = FALSE;
if (Hallucination) {
You_hear("the sound of a defibrillator.");
u_noticed = TRUE;
} else if (!Blind) {
You("observe %s %s change dramatically.",
s_suffix(an(mons[corpsenm].mname)),
nonliving(&mons[corpsenm]) ?
"motility" : "health");
}
if (u_noticed) {
makeknown(otmp->otyp);
exercise(A_WIS, TRUE);
}
}
}
break;
case WAN_OPENING:
case SPE_KNOCK: