(1c5ab9230) Enemies don't attack outposts or targets inside it anymore.

This commit is contained in:
Joonas Rikkonen
2019-04-05 16:11:44 +03:00
parent e84203781e
commit 7007804063
2 changed files with 7 additions and 14 deletions
@@ -1062,6 +1062,8 @@ namespace Barotrauma
{
continue;
}
// Don't attack outposts.
if (target.Entity.Submarine != null && target.Entity.Submarine.IsOutpost) { continue; }
Character targetCharacter = target.Entity as Character;