diff --git a/sim/druid/berserk.go b/sim/druid/berserk.go deleted file mode 100644 index 8fb387ad2..000000000 --- a/sim/druid/berserk.go +++ /dev/null @@ -1,75 +0,0 @@ -package druid - -import ( - "time" - - "github.com/wowsims/classic/sim/core" - "github.com/wowsims/classic/sim/core/proto" -) - -func (druid *Druid) applyBerserk() { - if !druid.HasRune(proto.DruidRune_RuneBeltBerserk) { - return - } - - actionId := core.ActionID{SpellID: 417141} - var affectedSpells []*DruidSpell - - druid.BerserkAura = druid.RegisterAura(core.Aura{ - Label: "Berserk", - ActionID: actionId, - Duration: time.Second * 15, - OnInit: func(aura *core.Aura, sim *core.Simulation) { - affectedSpells = core.FilterSlice([]*DruidSpell{ - druid.Rip, - // druid.Claw, // If it would exist - druid.Rake, - druid.TigersFury, - druid.Shred, - // druid.Ravage, // If it would exist - // druid.Pounce, // If it would exist - druid.FerociousBite, - druid.MangleCat, - // druid.Sunfire, // If it would exist - // druid.Skullbash, // If it would exist - druid.SavageRoar, - druid.SwipeCat, - }, func(spell *DruidSpell) bool { return spell != nil }) - }, - OnGain: func(aura *core.Aura, sim *core.Simulation) { - for _, spell := range affectedSpells { - if spell.Cost != nil { - spell.Cost.Multiplier -= 50 - } - } - }, - OnExpire: func(aura *core.Aura, sim *core.Simulation) { - for _, spell := range affectedSpells { - if spell.Cost != nil { - spell.Cost.Multiplier += 50 - } - } - }, - }) - - druid.Berserk = druid.RegisterSpell(Cat|Bear, core.SpellConfig{ - ActionID: actionId, - Flags: core.SpellFlagAPL, - - Cast: core.CastConfig{ - CD: core.Cooldown{ - Timer: druid.NewTimer(), - Duration: time.Minute * 3, - }, - IgnoreHaste: true, - }, - ApplyEffects: func(sim *core.Simulation, _ *core.Unit, _ *core.Spell) { - druid.BerserkAura.Activate(sim) - }, - }) - - druid.AddMajorCooldown(core.MajorCooldown{ - Spell: druid.Berserk.Spell, - Type: core.CooldownTypeDPS, - }) -}