1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

Update Nullkiller.cpp

AI can now also buy resources that it has income for.
This commit is contained in:
Xilmi
2024-09-06 21:40:23 +02:00
parent 35d8705fea
commit cf338e04ad
-2
View File
@@ -635,8 +635,6 @@ bool Nullkiller::handleTrading()
{
if (required[i] <= 0)
continue;
if (i != 6 && income[i] > 0)
continue;
float ratio = static_cast<float>(available[i]) / required[i];
if (ratio < minRatio) {