From 69038d5eea54afd5dd01eea9756b06ca0f78e9f0 Mon Sep 17 00:00:00 2001 From: rosenrusinov Date: Mon, 21 Aug 2023 11:14:53 +0200 Subject: [PATCH] disable legacy prepull actions when using APL --- sim/deathknight/deathknight.go | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/sim/deathknight/deathknight.go b/sim/deathknight/deathknight.go index 036ff12017..bdcfdf3bd1 100644 --- a/sim/deathknight/deathknight.go +++ b/sim/deathknight/deathknight.go @@ -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