Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combat, functioning of genie ability and damage display #8409

Open
2 tasks done
LeHerosInconnu opened this issue Feb 15, 2024 · 2 comments
Open
2 tasks done

Combat, functioning of genie ability and damage display #8409

LeHerosInconnu opened this issue Feb 15, 2024 · 2 comments
Labels
improvement New feature, request or improvement ui UI/GUI related stuff
Milestone

Comments

@LeHerosInconnu
Copy link

Preliminary checks

Platform

Windows

Describe the bug

In the original game, when the genie's ability comes into play, half the number of creatures, rounded up, are removed from the initial group, while the "first" creature's hit points are retained.
In the example, the troop of 13 giants is reduced to 6 giants (13 / 2 = 6,5 rounded up to 7, 13 - 7 = 6), and the 72 hit points of the first creature are retained.

In fheroes2, this is not the case.
The troop of 13 giants is reduced to 7 giants, and the 133 hit points of the first creature are reduced to 67 hit points.

Moreover, as the ability reduces the number of creatures, it is not necessary to display the damage supposedly suffered in the combat logs.
Only the number of creatures eliminated should be displayed, in the example with the correction applied:
"Genie destroys half the enemy troop!
7 giants perishs."
Eventually on the same line:
"Genie destroys half the enemy troop, 7 giants perish!"

In Heroes 2:

2024-02-15.12-12-17.mp4

In fheroes2:

2024-02-15.12-29-30.mp4

Save file

Here are the save file and the test scenario file:
Genie ability bug 01.zip

Additional info

Related closed issue: #3609.

@LeHerosInconnu LeHerosInconnu added the bug Something doesn't work label Feb 15, 2024
@oleg-derevenetz oleg-derevenetz added improvement New feature, request or improvement ui UI/GUI related stuff logic Things related to game logic labels Feb 15, 2024
@oleg-derevenetz oleg-derevenetz added this to the 1.1.0 milestone Feb 15, 2024
@oleg-derevenetz
Copy link
Collaborator

Game logic part of this PR is fixed by #8411. As for the part of improving the UI, personally, I don't think that showing damage is harmful in any way and vote not to remove it.

@oleg-derevenetz oleg-derevenetz removed bug Something doesn't work logic Things related to game logic labels Feb 20, 2024
@Alucard648
Copy link

I think, triggering Genie`s ability should also play spell effect like "Creature bisected in half with massive blood splash ala Heroes 1", complete with minor quake, just like massive hits in Heroes 7.

@ihhub ihhub modified the milestones: 1.1.0, 1.2.0 Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement ui UI/GUI related stuff
Projects
None yet
Development

No branches or pull requests

4 participants