From 5f82d164cf697c56e91e87cefa0953a7ad136a33 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 28 Jul 2019 11:09:06 +0200 Subject: [PATCH] fixed allies evading Demons incorrectly --- flags.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flags.cpp b/flags.cpp index 176c4535..a9bff975 100644 --- a/flags.cpp +++ b/flags.cpp @@ -224,6 +224,10 @@ bool ignoresPlates(eMonster m) { } bool isInactiveEnemy(cell *w, eMonster forwho) { + if(forwho != moPlayer) { + if(w->monst == moGreaterM || w->monst == moLesserM) return true; + if(w->monst == moGreater || w->monst == moLesser) return false; + } if(isInactiveEnemyType(w->monst)) return true; if(w->monst && ((forwho == moPlayer) ? realstuntime(w) : realstuntime(w) > 1) && !isFriendly(w)) return true;