Wyrmsun icon indicating copy to clipboard operation
Wyrmsun copied to clipboard

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

Open SenhorFlibble opened this issue 3 years ago • 1 comments

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.

SenhorFlibble avatar Feb 13 '22 20:02 SenhorFlibble

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.

Andrettin avatar Feb 14 '22 19:02 Andrettin