vampire bit (trunk only)

Vampires' aversion to altars is retained when they've shapeshifted
into their assorted alternate forms.
This commit is contained in:
nethack.rankin
2005-10-06 03:57:15 +00:00
parent a906215720
commit 8c56042a0c

View File

@@ -125,12 +125,13 @@ struct monst *mtmp;
is_rider(mtmp->data) || mtmp->data == &mons[PM_MINOTAUR])
return(FALSE);
return (boolean)(sobj_at(SCR_SCARE_MONSTER, x, y)
return (boolean)(sobj_at(SCR_SCARE_MONSTER, x, y) ||
#ifdef ELBERETH
|| sengr_at("Elbereth", x, y)
sengr_at("Elbereth", x, y) ||
#endif
|| (mtmp->data->mlet == S_VAMPIRE
&& IS_ALTAR(levl[x][y].typ)));
(IS_ALTAR(levl[x][y].typ) &&
(mtmp->data->mlet == S_VAMPIRE ||
is_vampshifter(mtmp))));
}
/* regenerate lost hit points */