1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

* Fixed #1417 — infinite loop of AI trying to visit allied creture generator

* Fixed #1401 — battle AI won't attempt attacks with First Aid Tent
This commit is contained in:
Michał W. Urbańczyk
2013-08-25 13:03:29 +00:00
parent 4287b2b7bb
commit 92246a2c17
5 changed files with 53 additions and 2 deletions

View File

@ -24,6 +24,16 @@ BattleAction::BattleAction()
additionalInfo = -1;
}
BattleAction BattleAction::makeHeal(const CStack *healer, const CStack *healed)
{
BattleAction ba;
ba.side = !healer->attackerOwned;
ba.actionType = STACK_HEAL;
ba.stackNumber = healer->ID;
ba.destinationTile = healed->position;
return ba;
}
BattleAction BattleAction::makeDefend(const CStack *stack)
{
BattleAction ba;