Skip to content

Commit

Permalink
Update feral tank for APL and add preset rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Aug 19, 2023
1 parent 2e3504f commit b59c0c3
Show file tree
Hide file tree
Showing 11 changed files with 1,324 additions and 1,271 deletions.
7 changes: 7 additions & 0 deletions sim/druid/berserk.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func (druid *Druid) registerBerserkCD() {

druid.Berserk = druid.RegisterSpell(core.SpellConfig{
ActionID: actionId,
Flags: core.SpellFlagAPL,

Cast: core.CastConfig{
DefaultCast: core.Cast{
GCD: time.Second,
Expand All @@ -59,4 +61,9 @@ func (druid *Druid) registerBerserkCD() {
druid.BerserkAura.Activate(sim)
},
})

druid.AddMajorCooldown(core.MajorCooldown{
Spell: druid.Berserk,
Type: core.CooldownTypeDPS,
})
}
1 change: 1 addition & 0 deletions sim/druid/druid.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type Druid struct {
MangleBear *core.Spell
MangleCat *core.Spell
Maul *core.Spell
MaulQueueSpell *core.Spell
Moonfire *core.Spell
Rebirth *core.Spell
Rake *core.Spell
Expand Down
11 changes: 9 additions & 2 deletions sim/druid/enrage.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,20 @@ func (druid *Druid) registerEnrageSpell() {
},
})

spell := druid.RegisterSpell(core.SpellConfig{
druid.Enrage = druid.RegisterSpell(core.SpellConfig{
ActionID: actionID,
Flags: core.SpellFlagAPL,

Cast: core.CastConfig{
CD: core.Cooldown{
Timer: druid.NewTimer(),
Duration: time.Minute,
},
IgnoreHaste: true,
},
ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return druid.InForm(Bear)
},

ApplyEffects: func(sim *core.Simulation, _ *core.Unit, _ *core.Spell) {
druid.AddRage(sim, instantRage, rageMetrics)
Expand All @@ -67,5 +71,8 @@ func (druid *Druid) registerEnrageSpell() {
},
})

druid.Enrage = spell
druid.AddMajorCooldown(core.MajorCooldown{
Spell: druid.Enrage,
Type: core.CooldownTypeDPS,
})
}
Loading

0 comments on commit b59c0c3

Please sign in to comment.