mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Ooops. Some obvious corrections to previous commit.
This commit is contained in:
parent
2cf6729eee
commit
a82469a205
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user