inwc3 / w3-bug-tracker

Bug tracker for Warcraft 3
0 stars 0 forks source link

Units can infinitely stack hp under certain circumstances #16

Open GrapesOfWath opened 1 year ago

GrapesOfWath commented 1 year ago

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