MantisBT - VCMI
View Issue Details
0002748VCMIGUI - Battlespublic2017-07-24 21:502019-03-24 12:42
hkoehler 
Dydzio 
normalminoralways
resolvedfixed 
0.99 
1.next 
0002748: Click on adventure map interpreted as battle command
When you click on the adventure map to attack something, the click is also interpreted as a click on the battle-map popup, causing your first creature stack to move accordingly and waste their turn (assuming you start).
On the adventure map, click on an enemy stack without releasing the mouse button. Once the battle map is open and you are able to act, release the mouse button - your selected creature should move to your mouse position.
It looks like the issue is with mouse-up getting interpreted as a click event. Mouse-down on the adventure map starts your hero moving and opens the battle-screen, then mouse-up moves your creature. Happens naturally if the target of your attack is very close and/or you simply click rather slow.
No tags attached.
Issue History
2017-07-24 21:50hkoehlerNew Issue
2017-08-01 14:08DydzioNote Added: 0007192
2019-03-23 11:54DydzioAssigned To => Dydzio
2019-03-23 11:54DydzioStatusnew => assigned
2019-03-23 11:56DydzioNote Added: 0007773
2019-03-24 12:42DydzioStatusassigned => resolved
2019-03-24 12:42DydzioFixed in Version => 1.next
2019-03-24 12:42DydzioResolutionopen => fixed

Notes
(0007192)
Dydzio   
2017-08-01 14:08   
Proper fix would be to implement battle start as in OH3 with action starting and responding to clicks after battle intro music stops playing
(0007773)
Dydzio   
2019-03-23 11:56   
Fixed in: https://github.com/vcmi/vcmi/pull/562 [^]

Performing battle actions is disabled during initial battle window state with this code.