ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.58k stars 360 forks source link

Troop loss bug when attacking the hero in the castle #8836

Closed Otakufanatic closed 2 weeks ago

Otakufanatic commented 2 weeks ago

Preliminary checks

Platform

Windows

Describe the bug

In this case it occurs in the last scenario of the Archibald campaign:

When you are attacked having a hero in the castle if the hero has troops and the castle also in the same square when the enemy attacks you the castle troops are lost and only the hero's troops are left for combat, unless the castle troops you change them to another of the 4 remaining squares so that it is not the same square where the hero has the troops.

1 2 3 4

Save file

Bug_save.zip

Additional info

version 1.1.0 (22 May 2024)

oleg-derevenetz commented 2 weeks ago

When you are attacked having a hero in the castle if the hero has troops and the castle also in the same square when the enemy attacks you the castle troops are lost and only the hero's troops are left for combat, unless the castle troops you change them to another of the 4 remaining squares so that it is not the same square where the hero has the troops.

This is not a bug, works as intended. Please see the long discussion in #6740 regarding this.

Otakufanatic commented 2 weeks ago

But in the original game if the square matches but the rest are free you do not lose the troops, the game implements it in the next square, that is, in this case that I have exposed, the trolls should appear in combat in square 2 (which is free) and the goblins in square 1 during combat and do not lose the troll troops because it matches in square 1 with the goblins for the hero and the castle. The troops were only lost in the original game if all the squares were already occupied (for example if the hero has 5 squares with troops and in the castle there are DIFFERENT troops in other squares, then the castle troops were lost for combat and left the hero's, unless they were some of the same type and then grouped to the corresponding square of the hero.

oleg-derevenetz commented 2 weeks ago

But in the original game if the square matches but the rest are free you do not lose the troops

This is not the case in fheroes2, and that's by design. Please read the discussion provided at the link above. There are justifications for why it was done this way and not otherwise.

Otakufanatic commented 2 weeks ago

Ok, thanks for the clarification.

Otakufanatic commented 2 weeks ago

Ok, thanks for the clarification.