Skip to content

Commit

Permalink
Update forms.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick authored Dec 23, 2024
1 parent 0df7fd7 commit 9d2e13d
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions sim/druid/forms.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const (
Bear
Cat
Moonkin
Tree
Any = Humanoid | Bear | Cat | Moonkin | Tree
Any = Humanoid | Bear | Cat | Moonkin
)

func (form DruidForm) Matches(other DruidForm) bool {
Expand Down Expand Up @@ -411,9 +410,6 @@ func (druid *Druid) registerMoonkinFormSpell() {

actionID := core.ActionID{SpellID: 24858}

druid.MoonfireDotMultiplier = 1.0
druid.SunfireDotMultiplier = 1.0

druid.MoonkinFormAura = druid.RegisterAura(core.Aura{
Label: "Moonkin Form",
ActionID: actionID,
Expand All @@ -423,37 +419,9 @@ func (druid *Druid) registerMoonkinFormSpell() {
druid.CancelShapeshift(sim)
}
druid.form = Moonkin

druid.AddStatDynamic(sim, stats.SpellDamage, float64(2*druid.Level))

druid.MoonfireDotMultiplier *= 2.0
core.Each(druid.Moonfire, func(spell *DruidSpell) {
if spell != nil {
spell.Spell.Cost.Multiplier -= 50
}
})

if druid.HasRune(proto.DruidRune_RuneHandsSunfire) {
druid.Sunfire.Cost.Multiplier -= 50
druid.SunfireDotMultiplier *= 2.0
}
},
OnExpire: func(aura *core.Aura, sim *core.Simulation) {
druid.form = Humanoid

druid.AddStatDynamic(sim, stats.SpellDamage, float64(-2*druid.Level))

core.Each(druid.Moonfire, func(spell *DruidSpell) {
if spell != nil {
spell.Spell.Cost.Multiplier += 50
}
})
druid.MoonfireDotMultiplier /= 2.0

if druid.HasRune(proto.DruidRune_RuneHandsSunfire) {
druid.Sunfire.Cost.Multiplier += 50
druid.SunfireDotMultiplier /= 2.0
}
},
})

Expand Down

0 comments on commit 9d2e13d

Please sign in to comment.