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

Bug fix: Defer calculation of Block Value's strength dependency and add Shaman SBV from strength #1077

Merged
merged 6 commits into from
Sep 22, 2024

Conversation

wsphillips
Copy link
Contributor

Fixes #1025 by adding PseudoStat.BlockValuePerStrength so that we can apply the BlockValueMultiplier independently to raw SBV and not SBV gained via strength.

Shield Block Value should now be correctly computed for all classes, including UI display.

@wsphillips wsphillips mentioned this pull request Sep 20, 2024
22 tasks
@wsphillips wsphillips changed the title Bug fix: Defer calculation of Block Value Bug fix: Defer calculation of Block Value's strength dependency Sep 20, 2024
@@ -312,7 +312,7 @@ func NewWarrior(character *core.Character, talents string, inputs WarriorInputs)
warrior.PseudoStats.CanParry = true

warrior.AddStatDependency(stats.Strength, stats.AttackPower, core.APPerStrength[character.Class])
warrior.AddStatDependency(stats.Strength, stats.BlockValue, .05) // 20 str = 1 block
warrior.PseudoStats.BlockValuePerStrength = .05 // 20 str = 1 block
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do shamans also get this bonus?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They should, but it looks like no one ever added the the block value/strength stat dependency in the first place! (And I glossed over it because I forgot Shamans also get it and it didn't show up when checking for usage in the repo 😅 ). I'll go ahead and tack it on here since its just one line of code.

@wsphillips wsphillips changed the title Bug fix: Defer calculation of Block Value's strength dependency Bug fix: Defer calculation of Block Value's strength dependency and add Shaman SBV from strength Sep 21, 2024
@kayla-glick kayla-glick merged commit 32e7685 into wowsims:master Sep 22, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

Shield Block Value Multiplier only applies to SBV gained through flat bonuses
2 participants