Update Units::isFortControlled

Add check for `agitated_wilderness_creature`.
develop
Ryan Williams 2023-02-04 18:48:41 -08:00 committed by GitHub
parent 11e3362670
commit c345acd417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

@ -175,7 +175,8 @@ bool Units::isFortControlled(df::unit *unit)
if (unit->flags2.bits.visitor ||
unit->flags2.bits.visitor_uninvited ||
unit->flags2.bits.underworld ||
unit->flags2.bits.resident)
unit->flags2.bits.resident ||
unit->flags2.bits.agitated_wilderness_creature)
return false;
return unit->civ_id != -1 && unit->civ_id == plotinfo->civ_id;