MantisBT - VCMI
View Issue Details
0003057VCMIMechanics - Battlespublic2019-05-10 10:102022-03-27 18:38
normalminorhave not tried
0003057: Race condition with BattleAI and SetStackEffect::applyBattle
 - Run attached map.
 - Using hero with harpies attack enemy hero with harpies.
 - Let BattleAI take control over your army too.
 - Now AI will cast Haste on both harpies.

Problem occur when SetStackEffect::applyBattle is received by client and gamestate is patched. For whatever reason both BattleAI and user UI still use old data about stack bonuses by the time Haste effect must already disappear.

So AI see on client that speed bonus still here and attempt to move Harpy further than it's actual speed allow. Server obviously don't have race condition here and it's refuse.
? arena_srednia.h3m (4,424) 2019-05-10 10:10
Issue History
2019-05-10 10:10SXXNew Issue
2019-05-10 10:10SXXFile Added: arena_srednia.h3m
2022-03-22 17:53PovelitelTag Attached: R1
2022-03-27 18:38PovelitelNote Added: 0008209
2022-03-27 18:38PovelitelStatusnew => resolved
2022-03-27 18:38PovelitelFixed in Version =>
2022-03-27 18:38PovelitelResolutionopen => fixed
2022-03-27 18:38PovelitelAssigned To => Povelitel
2022-03-27 18:38PovelitelAssigned ToPovelitel =>

2022-03-27 18:38   
Don't reproduce in current develop. Probably fixed long time ago