From 5be340e4da63ee8b20f8cb8ff023af3742715073 Mon Sep 17 00:00:00 2001 From: RecursiveVision <66801010+RecursiveVision@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:23:09 -0500 Subject: [PATCH] Diplomatic AIs usually won't accept CS bribe wars --- CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp index 643ccc0a2b..f2773066b6 100644 --- a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp @@ -25157,7 +25157,12 @@ void CvDiplomacyAI::SelectBestApproachTowardsMinorCiv(PlayerTypes ePlayer) LogMinorCivApproachUpdate(ePlayer, &vApproachScores[0], eApproach, eOldApproach); // Set if they're a potential war target - SetPotentialWarTarget(ePlayer, bPotentialWarTarget || IsAtWar(ePlayer)); + if (IsAtWar(ePlayer)) + SetPotentialWarTarget(ePlayer, true); + else if (bPotentialWarTarget) + SetPotentialWarTarget(ePlayer, (IsGoingForDiploVictory() || bCloseToDiploVictory) ? eApproach < CIV_APPROACH_NEUTRAL : eApproach < CIV_APPROACH_FRIENDLY); + else + SetPotentialWarTarget(ePlayer, false); } // -----------------------------------------------------------------------------------------------