monsters do not attack paused factions

This commit is contained in:
Enno Rehling 2021-05-30 15:14:55 +02:00
parent e6da5d92d8
commit ab5669a514
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}