Wielding Demonbane prevents demons summoning friends
This commit is contained in:
@@ -352,6 +352,7 @@ sometimes generate the random mazes with wide corridors, thick walls,
|
|||||||
or with dead ends changed to loops
|
or with dead ends changed to loops
|
||||||
put throne room gold in the chest
|
put throne room gold in the chest
|
||||||
wielding Trollsbane prevents trolls from reviving
|
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
|
Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
@@ -57,6 +57,13 @@ struct monst *mon;
|
|||||||
|
|
||||||
if (mon) {
|
if (mon) {
|
||||||
ptr = mon->data;
|
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
|
atyp = mon->ispriest ? EPRI(mon)->shralign
|
||||||
: mon->isminion ? EMIN(mon)->min_align
|
: mon->isminion ? EMIN(mon)->min_align
|
||||||
: (ptr->maligntyp == A_NONE)
|
: (ptr->maligntyp == A_NONE)
|
||||||
|
|||||||
Reference in New Issue
Block a user