MantisBT - VCMI
View Issue Details
0001058VCMIMechanics - Battlespublic2012-08-27 20:202014-05-30 17:41
Ivan 
Tow 
normalmajorsometimes
closedfixed 
x86_64Ubuntu Linux12.04 (precise)
 
0.9 
0001058: Sometimes stacks can be attacked only by ranged units when they stand on corpse
A bit tricky to reproduce:

1) Start a battle against multiple stacks
2) Kill one of stacks
3) Somehow force stack to move on the same position as corpse

Now you may not be able to attack this stack with melee units or spells, shooting still works.

This happens only sometimes. Probably some specific order of stacks needed.
No tags attached.
Issue History
2012-08-27 20:20IvanNew Issue
2012-08-27 21:22IvanNote Added: 0002938
2012-08-27 21:25IvanReproducibilityalways => sometimes
2012-08-27 21:25IvanSummaryDouble-wide stacks can be attacked only by ranged units when they stand on corpse => Sometimes stacks can be attacked only by ranged units when they stand on corpse
2012-08-27 21:25IvanDescription Updatedbug_revision_view_page.php?rev_id=1856#r1856
2012-08-28 12:31TowNote Added: 0002941
2012-08-28 12:31TowStatusnew => resolved
2012-08-28 12:31TowFixed in Version => 0.9
2012-08-28 12:31TowResolutionopen => fixed
2012-08-28 12:31TowAssigned To => Tow
2012-08-28 15:02IvanNote Added: 0002943
2012-08-28 15:02IvanStatusresolved => feedback
2012-08-28 15:02IvanResolutionfixed => reopened
2012-08-28 15:12IvanNote Edited: 0002943bug_revision_view_page.php?bugnote_id=2943#r1858
2012-08-28 15:38TowNote Added: 0002944
2012-08-28 16:13IvanNote Added: 0002945
2012-08-28 16:13IvanStatusfeedback => assigned
2012-08-28 16:13IvanStatusassigned => resolved
2012-08-28 16:13IvanResolutionreopened => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002938)
Ivan   
2012-08-27 21:22   
Found more logical explanation of this bug. Report edited.
(0002941)
Tow   
2012-08-28 12:31   
Fixed in r2853.
(0002943)
Ivan   
2012-08-28 15:02   
(edited on: 2012-08-28 15:12)
Still here. And yes - I have latest rev 2853.

More easier way to reproduce:

Get hero with some buffs (cure, haste, etc)
Split army to get several stacks with one creature each

In battle send those stacks to death and move living one on the corpse.

You may not be able to cast buff on this stack. Reproducibility random, needs specific order of stacks.

EDIT:
Just in case I ran complete recompilation. Bug still here.

(0002944)
Tow   
2012-08-28 15:38   
Sorry for trouble, my mistake. I somehow messed my patches and the fix did not get uploaded in r2853 though I was sure it did.
Please check r2855.
(0002945)
Ivan   
2012-08-28 16:13   
Looks to be fixed now. To resolved then.