diff --git a/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOption.java b/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOption.java index da6e0eb68b1..734575de298 100644 --- a/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOption.java +++ b/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOption.java @@ -92,7 +92,7 @@ public class ProPurchaseOption { transportCost = unitAttachment.getTransportCost() * quantity; carrierCost = unitAttachment.getCarrierCost() * quantity; isAir = unitAttachment.getIsAir(); - isSub = !unitAttachment.getCanNotTarget().isEmpty(); + isSub = unitAttachment.getCanEvade(); isDestroyer = unitAttachment.getIsDestroyer(); isTransport = unitAttachment.getTransportCapacity() > 0; isLandTransport = unitAttachment.isLandTransport(); diff --git a/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOptionMap.java b/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOptionMap.java index db469fbfe01..aafb396c274 100644 --- a/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOptionMap.java +++ b/game-app/game-core/src/main/java/games/strategy/triplea/ai/pro/data/ProPurchaseOptionMap.java @@ -103,7 +103,9 @@ public ProPurchaseOptionMap(final GamePlayer player, final GameData data) { ProLogger.debug("Air: " + ppo); } else if (Matches.unitTypeIsSea().test(unitType)) { final ProPurchaseOption ppo = new ProPurchaseOption(rule, unitType, player, data); - seaDefenseOptions.add(ppo); + if (!ppo.isSub()) { + seaDefenseOptions.add(ppo); + } if (ppo.isTransport()) { seaTransportOptions.add(ppo); }