diff --git a/source/glest_game/ai/ai.cpp b/source/glest_game/ai/ai.cpp index 8678252f..9e26b976 100644 --- a/source/glest_game/ai/ai.cpp +++ b/source/glest_game/ai/ai.cpp @@ -464,9 +464,11 @@ void Ai::sendScoutPatrol(){ int unit; bool possibleTargetFound= false; - if((aiInterface->getControlType() == ctCpuMega || aiInterface->getControlType() == ctNetworkCpuMega) - && random.randRange(0, 1) == 1) - { + bool ultraResourceAttack= (aiInterface->getControlType() == ctCpuUltra || aiInterface->getControlType() == ctNetworkCpuUltra) + && random.randRange(0, 2) == 1; + bool megaResourceAttack=(aiInterface->getControlType() == ctCpuMega || aiInterface->getControlType() == ctNetworkCpuMega) + && random.randRange(0, 1) == 1; + if( megaResourceAttack || ultraResourceAttack) { Map *map= aiInterface->getMap(); const TechTree *tt= aiInterface->getTechTree();