Skip to content

Commit

Permalink
Merge pull request #1536 from wowsims/eleoath_dmg_bonus
Browse files Browse the repository at this point in the history
Eleoath dmg bonus
  • Loading branch information
lologarithm authored Oct 30, 2022
2 parents 6bd7798 + 95bbaf3 commit bf995ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/druid/balance/TestBalance.results
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ dps_results: {
dps_results: {
key: "TestBalance-AllItems-IdoloftheUnseenMoon-33510"
value: {
dps: 7238.99389
tps: 7084.28042
dps: 7279.22564
tps: 7127.03315
}
}
dps_results: {
Expand Down
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 bf995ec

Please sign in to comment.