(0880ae29f) Don't add ai targets to alien ruin walls.

This commit is contained in:
Joonas Rikkonen
2019-04-15 11:56:18 +03:00
parent 04efb3d471
commit 561a1a8995
@@ -313,8 +313,8 @@ namespace Barotrauma
}
}
// Only add ai targets automatically to walls
if (aiTarget == null && HasBody && Tags.Contains("wall"))
// Only add ai targets automatically to submarine/outpost walls
if (aiTarget == null && HasBody && Tags.Contains("wall") && submarine != null)
{
aiTarget = new AITarget(this);
}