Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core/Unit: Round damage instead of truncating it
Round damage instead of truncating it when calculating armor-reduced damage. This fixes some level 1 creatures doing 0 damage (displayed as "Miss" ingame)
- Loading branch information
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be other places where this might make sense, for now only this one has been updated
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a character that have 25k armor I still don't get any damage.
Tested with SpawnID: 79960
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you supposed to always get damage ? Because some years ago this code forced to always do 1 damage at least, then it got changed to 0
Here's the commit that changed it from 1 to 0: f1986c6#diff-4522eeffcbc961602e86620011a2d579R1646
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Idea, maybe someone in retail can check that
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9c9f4d6
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Late test but I got retail result now - 0 damage (and miss) is actually blizzlike
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change ceil back to round then ?
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
a0d5088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a sniff sample