From f106b578a25b49e6d4de8dcde72347af0324caa6 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 18 Oct 2016 18:07:53 +0300 Subject: [PATCH] Wielding Demonbane prevents demons summoning friends --- doc/fixes36.1 | 1 + src/minion.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index b997f699..bb74b130 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -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 diff --git a/src/minion.c b/src/minion.c index 1af08f5e..d0394477 100644 --- a/src/minion.c +++ b/src/minion.c @@ -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) -- 2.11.4.GIT