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

Units can infinitely stack hp under certain circumstances #16

Open
GrapesOfWath opened this issue Nov 7, 2023 · 0 comments
Open

Units can infinitely stack hp under certain circumstances #16

GrapesOfWath opened this issue Nov 7, 2023 · 0 comments

Comments

@GrapesOfWath
Copy link

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

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.

Workaround

No response

Screenshots, test maps, other material

No response

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

1 participant