Skip to content

Commit

Permalink
disable legacy prepull actions when using APL
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenrusinov committed Aug 21, 2023
1 parent f8b540c commit 69038d5
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions sim/deathknight/deathknight.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,18 @@ func (dk *Deathknight) Initialize() {
},
})

if dk.Inputs.PrecastHornOfWinter {
dk.RegisterPrepullAction(-1500*time.Millisecond, func(sim *core.Simulation) {
dk.HornOfWinter.Cast(sim, nil)
})
}
if dk.Inputs.ArmyOfTheDeadType == proto.Deathknight_Rotation_PreCast {
dk.RegisterPrepullAction(-10*time.Second, func(sim *core.Simulation) {
dk.ArmyOfTheDead.Cast(sim, nil)
})
if !dk.IsUsingAPL {
if dk.Inputs.PrecastHornOfWinter {
dk.RegisterPrepullAction(-1500*time.Millisecond, func(sim *core.Simulation) {
dk.HornOfWinter.Cast(sim, nil)
})
}

if dk.Inputs.ArmyOfTheDeadType == proto.Deathknight_Rotation_PreCast {
dk.RegisterPrepullAction(-10*time.Second, func(sim *core.Simulation) {
dk.ArmyOfTheDead.Cast(sim, nil)
})
}
}

// allows us to use these auras in the APL pre-pull actions
Expand Down

0 comments on commit 69038d5

Please sign in to comment.