From ea16b82c30bf355565374a7db183cb8fb268d6ed Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 Nov 2019 16:06:44 +0100 Subject: [PATCH] Allies are now immune to friendly Beauty. --- game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.cpp b/game.cpp index 96a268c7..fc690551 100644 --- a/game.cpp +++ b/game.cpp @@ -3956,10 +3956,10 @@ EX void moveMonster(const movei& mi) { if(m == moFireElemental) { makeflame(cf, 20, false); if(cf->wparam < 20) cf->wparam = 20; } bool adj = false; - if(ct->cpdist == 1 && (items[itOrb37] || !nonAdjacent(cf,ct)) && markOrb(itOrbBeauty)) + if(ct->cpdist == 1 && (items[itOrb37] || !nonAdjacent(cf,ct)) && markOrb(itOrbBeauty) && !isFriendly(ct)) adj = true; - if(!adj && items[itOrbEmpathy] && items[itOrbBeauty]) { + if(!adj && items[itOrbEmpathy] && items[itOrbBeauty] && !isFriendly(ct)) { for(int i=0; itype; i++) if(ct->move(i) && isFriendly(ct->move(i))) adj = true, markOrb(itOrbEmpathy), markOrb(itOrbBeauty); }