Making it a bit random if standing or runnning units are attacked by Ultra/Mega CPUs
This commit is contained in:
parent
00b1bea1ac
commit
b8401bf208
|
@ -2386,9 +2386,11 @@ bool UnitUpdater::unitOnRange(const Unit *unit, int range, Unit **rangedPtr,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
random.randRange(0, 1);
|
||||
if(unit->getFaction()->getControlType()==ctCpuUltra ||
|
||||
unit->getFaction()->getControlType()==ctCpuMega) {
|
||||
if(attackingEnemySeen!=NULL) {
|
||||
if( attackingEnemySeen!=NULL && random.randRange(0,2)>0 ) {
|
||||
*rangedPtr = attackingEnemySeen;
|
||||
enemySeen = attackingEnemySeen;
|
||||
//printf("Da hat er wen gefunden:%s\n",enemySeen->getType()->getName(false).c_str());
|
||||
|
|
Loading…
Reference in New Issue