From 1e0d7daa5624a4ca447cd1db1c36e9ae105ac238 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sat, 18 May 2019 17:22:41 +0300 Subject: [PATCH] (bfc857b70) Ignore the requirement for being able to interact with a character while following the player. --- .../Source/Characters/AI/Objectives/AIObjectiveGoTo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs b/Barotrauma/BarotraumaShared/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs index c40748c6d..7fe272a64 100644 --- a/Barotrauma/BarotraumaShared/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs +++ b/Barotrauma/BarotraumaShared/Source/Characters/AI/Objectives/AIObjectiveGoTo.cs @@ -175,7 +175,7 @@ namespace Barotrauma { if (character.CanInteractWith(item, out _, checkLinked: false)) { isCompleted = true; } } - else if (Target is Character targetCharacter) + else if (Target is Character targetCharacter && !FollowControlledCharacter) { if (character.CanInteractWith(targetCharacter, CloseEnough)) { isCompleted = true; } }