MantisBT - VCMI
View Issue Details
0000140VCMIMechanics - Battlespublic2009-10-11 16:362010-07-07 21:33
Zamolxis 
Tow dragon 
normalcrashalways
closedfixed 
0.74 
0.8 
0000140: Crash when my (2-hex) Dread Knight retaliated against a Wraith attacking from up-behind
It seems not all issues regarding attacks on 2-hex creatures have been solved.

In the map I attached to report 0000139, when I attacked Isra with Septienna, after moving the Dread Knight closer (so that it can be attacked from all directions), the game crashed when he retaliated against a Wraith which attack him from the hex up-behind.

See attached crash logs and first screenshot: http://i4.photobucket.com/albums/y104/Zamolxis/VCMI/VCMI%2007/2009-10-11_WraithAttackDNfromBehind.jpg [^] (luckily the 'dying' Wraith can be seen in the crash-freeze to confirm its position)

Steps to reproduce (always reproducible if the enemy placement is like I describe below):
- Take map attached to 0000139 and attack Isra with Septienna
- Wait on all your creatures and let the Wraiths come closer (PAY ATTENTION WHICH WAS THE FIRST ENEMY WRAITH TO MOVE)
- If the first Wraith to move has placed itself in such a way that you can move your Dread Knight in the hex down-behind her, then do so
- When enemy's turn comes, that first Wraith will try to attack your Dread Knight from the up-behind hex and you should have the crash

This is the screenshot of the reproduced bug, where I marked the places of the first Wraith (in green) and the Dread Knight (in red): http://i4.photobucket.com/albums/y104/Zamolxis/VCMI/VCMI%2007/2009-10-11_WraithAttackDNfromBeh-1.jpg [^] (the body of the unit disappeared when I moved away the crashhandler pop up for a better view)

I did not manage to get the chance to place the Dread Knight really behind the Wraith to see if it occurs as well, but when I placed it on other hexes around the first Wraith, the bug did not reoccur.
No tags attached.
related to 0000182closed Tow dragon Crash when my (2-hex) Centaurs retaliated against an Earth Elemental attacking diagonally from behind. 
7z 2009-10-11_WraithAttackDNfromBehind.7z (127,697) 2009-10-11 16:36
https://bugs.vcmi.eu/file_download.php?file_id=18&type=bug
Issue History
2009-10-11 16:36ZamolxisNew Issue
2009-10-11 16:36ZamolxisFile Added: 2009-10-11_WraithAttackDNfromBehind.7z
2009-10-11 16:53ZamolxisReproducibilityunable to reproduce => always
2009-10-11 16:53ZamolxisSummaryCrash when enemy Wraith attacked my (2-hex) Dread Knight from up-behind => Crash when my (2-hex) Dread Knight retaliated against a Wraith attacking from up-behind
2009-10-11 16:53ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=189#r189
2009-10-11 16:54ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=190#r190
2009-10-11 16:57ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=191#r191
2009-10-11 17:01ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=192#r192
2009-10-11 17:07ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=193#r193
2009-10-18 13:12Tow dragonNote Added: 0000125
2009-10-24 11:51WarmongerRelationship addedrelated to 0000182
2010-01-30 15:36Tow dragonNote Added: 0000596
2010-01-30 15:36Tow dragonStatusassigned => resolved
2010-01-30 15:36Tow dragonFixed in Version => 0.89
2010-01-30 15:36Tow dragonResolutionopen => fixed
2010-05-29 23:24ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=817#r817
2010-07-07 21:33ZamolxisNote Added: 0001024
2010-07-07 21:33ZamolxisStatusresolved => closed

Notes
(0000125)
Tow dragon   
2009-10-18 13:12   
I think it's not related to two-hexness. Trying to reproduce this bug I noticed that in certain situations two different creatures can be placed on the same position - one alive and one (or even more) dead. VCMI does not handle it correctly in all places.
(0000596)
Tow dragon   
2010-01-30 15:36   
I was able to reproduce it in old version but it does not appear in newer one. Seems to be fixed.
(0001024)
Zamolxis   
2010-07-07 21:33   
Verified as fixed in 0.81