From 6f944a3bf42fbaaa3ac0bfaa57627a9718c3be52 Mon Sep 17 00:00:00 2001 From: azum4roll Date: Wed, 13 Sep 2023 13:47:22 +0800 Subject: [PATCH] make units that can gain XP from scouting also claim ruins (#10169) --- CvGameCoreDLL_Expansion2/CvPlayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CvGameCoreDLL_Expansion2/CvPlayer.cpp b/CvGameCoreDLL_Expansion2/CvPlayer.cpp index 43d6d6be49..94f8cb5f91 100644 --- a/CvGameCoreDLL_Expansion2/CvPlayer.cpp +++ b/CvGameCoreDLL_Expansion2/CvPlayer.cpp @@ -14372,8 +14372,9 @@ void CvPlayer::doGoody(CvPlot* pPlot, CvUnit* pUnit) return; // Mod option: only recon units can claim ruins - if (MOD_BALANCE_CORE_GOODY_RECON_ONLY && pUnit && pUnit->getUnitCombatType() != (UnitCombatTypes) GC.getInfoTypeForString("UNITCOMBAT_RECON", true)) - return; + if (MOD_BALANCE_CORE_GOODY_RECON_ONLY) + if (pUnit && pUnit->getUnitCombatType() != (UnitCombatTypes) GC.getInfoTypeForString("UNITCOMBAT_RECON", true) && !pUnit->IsGainsXPFromScouting()) + return; m_bEverPoppedGoody = true; pPlot->removeGoody();