Wielding Demonbane prevents demons summoning friends

This commit is contained in:
Pasi Kallinen
2016-10-18 18:07:53 +03:00
parent 14bd550481
commit f106b578a2
2 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,13 @@ struct monst *mon;
if (mon) {
ptr = mon->data;
if (uwep && uwep->oartifact == ART_DEMONBANE && is_demon(ptr)) {
if (canseemon(mon))
pline("%s looks puzzled for a moment.", Monnam(mon));
return 0;
}
atyp = mon->ispriest ? EPRI(mon)->shralign
: mon->isminion ? EMIN(mon)->min_align
: (ptr->maligntyp == A_NONE)