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:
@ -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;
|
||||
|
Reference in New Issue
Block a user