blessed objects vs vulnerable creatures

Collect creatures that don't like being hit by blessed objects in one
place.  No change in behavior.
This commit is contained in:
PatR
2022-01-21 13:19:57 -08:00
parent 182abe6b60
commit aab21eba95
5 changed files with 37 additions and 25 deletions

View File

@@ -678,7 +678,7 @@ peffect_water(struct obj *otmp)
return;
}
g.potion_unkn++;
if (is_undead(g.youmonst.data) || is_demon(g.youmonst.data)
if (mon_hates_blessings(&g.youmonst) /* undead or demon */
|| u.ualign.type == A_CHAOTIC) {
if (otmp->blessed) {
pline("This burns like %s!", hliquid("acid"));
@@ -1725,7 +1725,7 @@ potionhit(struct monst *mon, struct obj *obj, int how)
}
break;
case POT_WATER:
if (is_undead(mon->data) || is_demon(mon->data)
if (mon_hates_blessings(mon) /* undead or demon */
|| is_were(mon->data) || is_vampshifter(mon)) {
if (obj->blessed) {
pline("%s %s in pain!", Monnam(mon),