Skip to content

Commit

Permalink
update moonfire+sunfire damage calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Jan 30, 2024
1 parent 4d79048 commit f1daafe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sim/druid/moonfire.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func (druid *Druid) getMoonfireBaseConfig(rank int) core.SpellConfig {
manaCost := [11]float64{0, 25, 50, 75, 105, 150, 190, 235, 280, 325, 375}[rank]
level := [11]int{0, 4, 10, 16, 22, 28, 34, 40, 46, 52, 58}[rank]

ticks := core.TernaryInt32(rank < 2, 3, 4)
impMf := float64(druid.Talents.ImprovedMoonfire)
moonfury := float64(druid.Talents.Moonfury)

Expand All @@ -40,10 +41,10 @@ func (druid *Druid) getMoonfireBaseConfig(rank int) core.SpellConfig {
Label: "Moonfire",
ActionID: core.ActionID{SpellID: spellId},
},
NumberOfTicks: core.TernaryInt32(rank < 2, 3, 4),
NumberOfTicks: ticks,
TickLength: time.Second * 3,
OnSnapshot: func(sim *core.Simulation, target *core.Unit, dot *core.Dot, _ bool) {
dot.SnapshotBaseDamage = (baseDotDamage / 3.0) + spellDotCoeff*dot.Spell.SpellPower()
dot.SnapshotBaseDamage = (baseDotDamage / float64(ticks)) + spellDotCoeff*dot.Spell.SpellPower()
dot.SnapshotAttackerMultiplier = 1 // dot.Spell.AttackerDamageMultiplier(dot.Spell.Unit.AttackTables[target.UnitIndex])
},
OnTick: func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
Expand Down
2 changes: 1 addition & 1 deletion sim/druid/runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (druid *Druid) applySunfire() {
NumberOfTicks: ticks,
TickLength: time.Second * 3,
OnSnapshot: func(sim *core.Simulation, target *core.Unit, dot *core.Dot, _ bool) {
dot.SnapshotBaseDamage = (baseDotDamage / float64(ticks)) + 0.13*dot.Spell.SpellPower()
dot.SnapshotBaseDamage = baseDotDamage + 0.13*dot.Spell.SpellPower()
dot.SnapshotAttackerMultiplier = 1
},
OnTick: func(sim *core.Simulation, target *core.Unit, dot *core.Dot) {
Expand Down

0 comments on commit f1daafe

Please sign in to comment.