Skip to content

Commit

Permalink
Fix being able to trade DPs without embassy
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 7, 2024
1 parent f2cfa0b commit ed38c38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CvGameCoreDLL_Expansion2/CvDealClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed38c38

Please sign in to comment.