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

@@ -352,6 +352,7 @@ sometimes generate the random mazes with wide corridors, thick walls,
or with dead ends changed to loops
put throne room gold in the chest
wielding Trollsbane prevents trolls from reviving
wielding Demonbane prevents demons summoning friends
Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository

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)