From ab5669a514970d729dd2b633f41ab589f505ea10 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 30 May 2021 15:14:55 +0200 Subject: [PATCH] monsters do not attack paused factions --- src/monsters.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/monsters.c b/src/monsters.c index 4f69806e8..3fbda5215 100644 --- a/src/monsters.c +++ b/src/monsters.c @@ -167,6 +167,9 @@ static order *monster_attack(unit * u, const unit * target) { assert(u->region == target->region); assert(u->faction != target->faction); + if (is_paused(target->faction)) { + return NULL; + } if (!cansee(u->faction, u->region, target, 0)) { return NULL; }