Skip to content

Commit

Permalink
fixed ele oath to include spell dmg bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
lologarithm committed Oct 30, 2022
1 parent 78b8128 commit f34027a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sim/shaman/talents.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,26 @@ func (shaman *Shaman) applyElementalFocus() {
return
}

oathBonus := 1 + (0.05 * float64(shaman.Talents.ElementalOath))
shaman.ClearcastingAura = shaman.RegisterAura(core.Aura{
Label: "Clearcasting",
ActionID: core.ActionID{SpellID: 16246},
Duration: time.Second * 15,
MaxStacks: 2,
OnGain: func(aura *core.Aura, sim *core.Simulation) {
if oathBonus > 1 {
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexNature] *= oathBonus
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexFire] *= oathBonus
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexFrost] *= oathBonus
}
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
if oathBonus > 1 {
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexNature] /= oathBonus
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexFire] /= oathBonus
shaman.PseudoStats.SchoolDamageDealtMultiplier[stats.SchoolIndexFrost] /= oathBonus
}
},
OnCastComplete: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell) {
if !spell.Flags.Matches(SpellFlagShock | SpellFlagFocusable) {
return
Expand Down

0 comments on commit f34027a

Please sign in to comment.