MantisBT - VCMI
View Issue Details
0003036VCMIAI - Adventure Mappublic2019-02-14 14:022019-03-21 14:48
Microsoft WindowsWindows 7Home Premium x64 
0003036: Some unexpected crap happens in AI behavior - expecting army exchange then exploration
On attached map AI behaves unexpectedly during its turn. Expected behavior is to give army to one hero during GatherArmy decomposition. Then heroes should move around to explore as army guarding castle is too strong for them. Instead heroes end each turn next to each other, error "Hero Dace tries to visit himself" appears before AI turn ends on each turn passed. Also make sure you read "Additional Information" below before working on this bug.
With newest daily build run attached map, use vcmieagles cheat and see that heroes get stuck next to each other and error related to hero trying to visit himself appears in console before AI ends turn.
Requires newest commit [^]

If you move hero Dace in map editor 1 tile upwards the bug won't appear. Changing army composition of heroes may cause bug to not appear as well
No tags attached.
? vcmiaistacksplit.h3m (8,599) 2019-02-14 14:02
Issue History
2019-02-14 14:02DydzioNew Issue
2019-02-14 14:02DydzioStatusnew => assigned
2019-02-14 14:02DydzioAssigned To => Nullkiller
2019-02-14 14:02DydzioFile Added: vcmiaistacksplit.h3m
2019-02-16 09:15NullkillerNote Added: 0007751
2019-02-16 13:23WarmongerNote Added: 0007752
2019-03-21 14:48DydzioStatusassigned => resolved
2019-03-21 14:48DydzioFixed in Version =>
2019-03-21 14:48DydzioResolutionopen => fixed

2019-02-16 09:15   
Will be fixed in [^]
2019-02-16 13:23   
:D Finally someone figured that one out, great job!

Also, might help with heroes trading armies between each other indefinitely (currently patched around).