diff --git a/src/AI/AIScripts.cpp b/src/AI/AIScripts.cpp index 4633008..f2d7de3 100644 --- a/src/AI/AIScripts.cpp +++ b/src/AI/AIScripts.cpp @@ -131,8 +131,8 @@ void AIScript::setCost(float cost, SpawnMode spawnMode) { void AIScript::buildBasic() { if (m_selectedBuildingType != UnitType::NONE) { - if (m_selectedBuildingType != UnitType::ORE_REF && - m_EnemyObjectManager->getTotalCurrency() > 2000 + 100 - m_paid) { + if (m_selectedBuildingType == UnitType::ORE_REF && + m_EnemyObjectManager->getTotalCurrency() > 2000 + 100 + static_cast(m_paid)) { spawnUnit(); } return;