forked from github/server
monsters do not attack paused factions
This commit is contained in:
parent
e6da5d92d8
commit
ab5669a514
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue