1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Nullkiller: stabilisation

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:22:37 +03:00
committed by Andrii Danylchenko
parent 8e4ca10365
commit 1fd838a5b9
7 changed files with 70 additions and 8 deletions

View File

@@ -476,7 +476,7 @@ void AINodeStorage::calculateHeroChain(
if(other->actor->isMovable)
{
bool hasLessMp = carrier->turns > other->turns || carrier->moveRemains < other->moveRemains;
bool hasLessMp = carrier->turns > other->turns || (carrier->turns == other->turns && carrier->moveRemains < other->moveRemains);
bool hasLessExperience = carrier->actor->hero->exp < other->actor->hero->exp;
if(hasLessMp && hasLessExperience)