From ed38c387c207b3f69e5b97d63735af92188dba98 Mon Sep 17 00:00:00 2001 From: RecursiveVision <66801010+RecursiveVision@users.noreply.github.com> Date: Sun, 7 Jul 2024 02:41:12 -0400 Subject: [PATCH] Fix being able to trade DPs without embassy --- CvGameCoreDLL_Expansion2/CvDealClasses.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CvGameCoreDLL_Expansion2/CvDealClasses.cpp b/CvGameCoreDLL_Expansion2/CvDealClasses.cpp index aff3817830..73e77a6eb9 100644 --- a/CvGameCoreDLL_Expansion2/CvDealClasses.cpp +++ b/CvGameCoreDLL_Expansion2/CvDealClasses.cpp @@ -759,6 +759,10 @@ bool CvDeal::IsPossibleToTradeItem(PlayerTypes ePlayer, PlayerTypes eToPlayer, T if (!pFromTeam->isDefensivePactTradingAllowed() && !pToTeam->isDefensivePactTradingAllowed()) return false; + // Mutual embassies are required + if (!pFromTeam->HasEmbassyAtTeam(eToTeam) || !pToTeam->HasEmbassyAtTeam(eFromTeam)) + return false; + // Vassals cannot make Defensive Pacts. if (pFromTeam->IsVassalOfSomeone() || pToTeam->IsVassalOfSomeone()) return false;