1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

* fixed all problems in engine with wide creatures (I hope) (except problem with range of flying wide creatures)

This commit is contained in:
mateuszb
2009-08-03 14:29:29 +00:00
parent 2496cb4aa5
commit f582bfde49
5 changed files with 67 additions and 33 deletions

View File

@@ -1240,6 +1240,10 @@ void CPlayerInterface::actionFinished(const BattleAction* action)
else
battleInt->attackingHero->setPhase(0);
}
if(action->actionType == 6 || action->actionType == 2 && battleInt->creAnims[action->stackNumber]->getType() != 2) //walk or walk & attack
{
battleInt->handleEndOfMove(action->stackNumber, action->destinationTile);
}
}
BattleAction CPlayerInterface::activeStack(int stackID) //called when it's turn of that stack