mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Ooops. Some obvious corrections to previous commit.
This commit is contained in:
		| @@ -33,13 +33,13 @@ void CStupidAI::actionStarted( const BattleAction *action ) | ||||
| BattleAction CStupidAI::activeStack( const CStack * stack ) | ||||
| { | ||||
| 	print("activeStack called"); | ||||
| 	return BattleAction::makeDefend(stack); | ||||
| 	if(stack->position % 17  <  5) //move army little towards enemy | ||||
| 	{ | ||||
| 		THex dest = stack->position + side*2 - 1; | ||||
| 		print(stack->nodeName() << "will be moved to " + boost::lexical_cast<std::string>(dest)); | ||||
| 		return BattleAction::makeMove(stack, );  | ||||
| 		THex dest = stack->position + !side*2 - 1; | ||||
| 		print(stack->nodeName() + "will be moved to " + boost::lexical_cast<std::string>(dest)); | ||||
| 		return BattleAction::makeMove(stack, dest);  | ||||
| 	} | ||||
| 	return BattleAction::makeDefend(stack); | ||||
| } | ||||
|  | ||||
| void CStupidAI::battleAttack(const BattleAttack *ba) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user