Skip to content

Commit

Permalink
make units that can gain XP from scouting also claim ruins (#10169)
Browse files Browse the repository at this point in the history
  • Loading branch information
azum4roll authored Sep 13, 2023
1 parent b1b96e9 commit 6f944a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CvGameCoreDLL_Expansion2/CvPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6f944a3

Please sign in to comment.