Skip to content

Commit

Permalink
Merge pull request #450 from wowsims/poleaxe-spec
Browse files Browse the repository at this point in the history
Warrior: add Polearm Specialization
  • Loading branch information
TheGroxEmpire authored Mar 24, 2024
2 parents f0b18fc + 4136f42 commit 09dd189
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sim/warrior/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,28 @@ func (warrior *Warrior) applyWeaponSpecializations() {
})
}
}

if ps := warrior.Talents.PolearmSpecialization; ps > 0 {
// the default character panel displays critical strike chance for main hand only
switch warrior.GetProcMaskForTypes(proto.WeaponType_WeaponTypePolearm) {
case core.ProcMaskMelee:
warrior.AddStat(stats.MeleeCrit, 1*core.CritRatingPerCritChance*float64(ps))
case core.ProcMaskMeleeMH:
warrior.AddStat(stats.MeleeCrit, 1*core.CritRatingPerCritChance*float64(ps))
warrior.OnSpellRegistered(func(spell *core.Spell) {
if spell.ProcMask.Matches(core.ProcMaskMeleeOH) {
spell.BonusCritRating -= 1 * core.CritRatingPerCritChance * float64(ps)
}
})
case core.ProcMaskMeleeOH:
warrior.OnSpellRegistered(func(spell *core.Spell) {
if spell.ProcMask.Matches(core.ProcMaskMeleeOH) {
spell.BonusCritRating += 1 * core.CritRatingPerCritChance * float64(ps)
}
})
}
}

}

func (warrior *Warrior) registerSwordSpecialization(procMask core.ProcMask) {
Expand Down

0 comments on commit 09dd189

Please sign in to comment.