Skip to content

Units can infinitely stack hp under certain circumstances #16

Description

@GrapesOfWath

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions