Skip to content

Commit 5b94432

Browse files
committed
Fix 1% Melee Hit Suppression and Truncate Expertise
1 parent b70069f commit 5b94432

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sim/core/spell_result.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,13 @@ func (spell *Spell) RangedAttackPower() float64 {
157157
}
158158

159159
func (spell *Spell) DodgeParrySuppression() float64 {
160-
// TBC ANNI: Verify if Expertise truncates
161160
expertiseRating := spell.Unit.stats[stats.ExpertiseRating] + spell.BonusExpertiseRating
162-
return expertiseRating / ExpertisePerQuarterPercentReduction / 400
161+
return math.Floor(expertiseRating/ExpertisePerQuarterPercentReduction) / 400
163162
}
164163

165164
func (spell *Spell) PhysicalHitChance(attackTable *AttackTable) float64 {
166165
hitPercent := spell.Unit.stats[stats.PhysicalHitPercent] + spell.BonusHitPercent - attackTable.Defender.PseudoStats.ReducedPhysicalHitTakenChance
167-
return hitPercent / 100
166+
return max(hitPercent/100-attackTable.HitSuppression, 0)
168167
}
169168
func (spell *Spell) PhysicalHitCheck(sim *Simulation, attackTable *AttackTable) bool {
170169
return sim.Proc(1.0-spell.GetPhysicalMissChance(attackTable), "Physical Hit Roll")

0 commit comments

Comments
 (0)