mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-05 23:28:14 +02:00
AI for neutral creatures and battles and player AIs can be different. StupidAI will handle neutrals by default.
Fixes for issues with deserialization and handling Tactics secondary skill.
This commit is contained in:
@@ -3334,6 +3334,9 @@ void CBattleInterface::endAction(const BattleAction* action)
|
||||
}
|
||||
|
||||
queue->update();
|
||||
|
||||
if(tacticsMode) //we have activated next stack after sending request that has been just realized -> blockmap due to movement has changed
|
||||
redrawBackgroundWithHexes(activeStack);
|
||||
}
|
||||
|
||||
void CBattleInterface::hideQueue()
|
||||
@@ -3461,9 +3464,11 @@ void CBattleInterface::waitForAnims()
|
||||
|
||||
void CBattleInterface::bEndTacticPhase()
|
||||
{
|
||||
btactEnd->block(true);
|
||||
bDefence->block(false);
|
||||
bWait->block(false);
|
||||
BattleAction endt = BattleAction::makeEndOFTacticPhase(curInt->cb->battleGetMySide());
|
||||
curInt->cb->battleMakeTacticAction(&endt);
|
||||
btactEnd->block(true);
|
||||
}
|
||||
|
||||
void CBattleInterface::bTacticNextStack()
|
||||
|
||||
Reference in New Issue
Block a user