Because of float->int conversion rounding, units with specific max HP values can gain HP infinitely when picking up items, and performing other actions.
Description
see above
Additional Information
No response
Expected
No response
Actual
No response
Reproduction steps
Give a hero 475 base HP.
Give that hero 10% bonus HP through whatever means you prefer (I used a research upgrade).
Pick up any item (an item that disappears and gives you stats/resources when picked up, I used gold coins) OR learn a hero skill
If done right, your max hp should have been increased by 1. I’m assuming this works with other numbers as well.
External URLs
https://us.forums.blizzard.com/en/warcraft3/t/hp-bonus-bug/30322
Game Versions
No response
Summary
Because of float->int conversion rounding, units with specific max HP values can gain HP infinitely when picking up items, and performing other actions.
Description
see above
Additional Information
No response
Expected
No response
Actual
No response
Reproduction steps
Workaround
No response
Screenshots, test maps, other material
No response