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

[5.3.4] Heroes healed to full health when loading a saved game #207

Open
SenhorFlibble opened this issue Feb 13, 2022 · 1 comment
Open

Comments

@SenhorFlibble
Copy link

Found another bug, easily reproduced:

  • start a scenario game, have one or more of your heroes hurt (e.g. by friendly attack)
  • save the game, then load it

All heroes (both starting heroes and anyone hired from the Town Hall) will be at full health after the game is loaded. This does not seem to affect regular units or buildings.

Tested this with both Dwarf and Germanic scenarios.

@Andrettin
Copy link
Owner

Thanks for letting me know :) When a game is loaded, characters have their persistent data applied, rather than what is in the save file (otherwise loading a game could screw up the persistent character data).

But this issue should be simple to fix, the HP (and mana) of the character unit in the save file should be applied as a percentage to that which it will have when the persistent data is applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants