MantisBT - VCMI
View Issue Details
0003053VCMIGUI - Battlespublic2019-05-03 07:462019-05-04 07:26
Dydzio 
Dydzio 
normalminoralways
resolvedfixed 
Microsoft WindowsWindows 7Home Premium x64
0.next 
0.next 
0003053: Lack of proper handling for AI attacking our players if we control multiple colors
During hotseat game I noticed bugged battle UI behavior when AI attacks our player, which is not last color used when pssing turn and letting AI play. Wrong value of LOCPLINT and/or GH.curInt set during battle causes bugs.
Cause situation where AI attacks player in hotseat mode who is not the last human player in turn order.

One of ways to reproduce is to pass two turns in provided save, it requires some mods to run, mentioned in Additional Information to this report.
Mods used in save: Cathedral, Highlands/Bastille, MDT Forge, Pavilion 2.60 - versions available currently as of 3.05.2019 from mod list on wiki.
No tags attached.
related to 0003054new  Hotseat: more issues when AI attacking non-primary player 
zip bugbug2.zip (1,439,531) 2019-05-03 07:46
https://bugs.vcmi.eu/file_download.php?file_id=3000&type=bug
Issue History
2019-05-03 07:46DydzioNew Issue
2019-05-03 07:46DydzioStatusnew => assigned
2019-05-03 07:46DydzioAssigned To => Dydzio
2019-05-03 07:46DydzioFile Added: bugbug2.zip
2019-05-03 10:07DydzioNote Added: 0007783
2019-05-04 07:06SXXRelationship addedrelated to 0003054
2019-05-04 07:26DydzioNote Edited: 0007783bug_revision_view_page.php?bugnote_id=7783#r3567
2019-05-04 07:26DydzioStatusassigned => resolved
2019-05-04 07:26DydzioFixed in Version => 0.next
2019-05-04 07:26DydzioResolutionopen => fixed

Notes
(0007783)
Dydzio   
2019-05-03 10:07   
(edited on: 2019-05-04 07:26)
Fixed in: https://github.com/vcmi/vcmi/pull/583 [^]

Leftover bugs will be fixed as part of bug https://bugs.vcmi.eu/view.php?id=3054 [^] instead of this one.