Skip to content

Commit

Permalink
Merge pull request #2862 from jarveson/jake/feral-hotfix-rot-fix
Browse files Browse the repository at this point in the history
feral: fix rotation prepopOoc/zerk interaction
  • Loading branch information
jarveson authored Apr 4, 2023
2 parents c4bdea9 + 177d2f7 commit 06bbe35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions sim/druid/feral/feral.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ func (cat *FeralDruid) Initialize() {
cat.Druid.Initialize()
cat.RegisterFeralCatSpells()

if cat.PrePopBerserk && cat.Talents.Berserk {
cat.RegisterPrepullAction(-time.Second, func(sim *core.Simulation) {
cat.Berserk.Cast(sim, nil)
if cat.prepopOoc && cat.Talents.OmenOfClarity {
time := core.Ternary(cat.PrePopBerserk, time.Second*2, time.Second)
cat.RegisterPrepullAction(-time, func(sim *core.Simulation) {
cat.FaerieFire.Cast(sim, nil)
})
}

if cat.prepopOoc && cat.Talents.OmenOfClarity {
cat.RegisterPrepullAction(-cat.SpellGCD(), func(sim *core.Simulation) {
cat.FaerieFire.Cast(sim, nil)
if cat.PrePopBerserk && cat.Talents.Berserk {
cat.RegisterPrepullAction(-time.Second, func(sim *core.Simulation) {
cat.Berserk.Cast(sim, nil)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/feral_druid/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const LatencyMs = InputHelpers.makeSpecOptionsNumberInput<Spec.SpecFeralD
export const PrepopOoc = InputHelpers.makeSpecOptionsBooleanInput<Spec.SpecFeralDruid>({
fieldName: 'prepopOoc',
label: 'Pre-pop Clearcasting',
labelTooltip: 'Start fight with clearcasting active',
labelTooltip: 'Start fight with clearcasting using FFF',
showWhen: (player: Player<Spec.SpecFeralDruid>) => player.getTalents().omenOfClarity,
changeEmitter: (player: Player<Spec.SpecFeralDruid>) => TypedEvent.onAny([player.rotationChangeEmitter, player.talentsChangeEmitter]),
})
Expand Down

0 comments on commit 06bbe35

Please sign in to comment.