// All DKs should be throwing death grip when not in intances. It just speeds things up, and makes a mess for PVP

[Class(WoWClass.DeathKnight)]
[Behavior(BehaviorType.Pull)]
[Spec(TalentSpec.BloodDeathKnight)]
[Spec(TalentSpec.FrostDeathKnight)]
[Spec(TalentSpec.UnholyDeathKnight)]
[Spec(TalentSpec.Lowbie)]
[Context(WoWContext.Battlegrounds | WoWContext.Normal)]
public static Composite CreateDeathKnightNormalAndPvPPull()
{
return
new PrioritySelector(
Movement.CreateMoveToLosBehavior(),
Movement.CreateFaceTargetBehavior(),
new Sequence(
Spell.Cast("Death Grip",
ret => StyxWoW.Me.CurrentTarget.DistanceSqr > 10 * 10),
new DecoratorContinue(
ret => StyxWoW.Me.IsMoving,
new Action(ret => Navigator.PlayerMover.MoveStop())),
new WaitContinue(1, new ActionAlwaysSucceed())),
Spell.Cast("Howling Blast"),
Spell.Cast("Icy Touch"),
Movement.CreateMoveToMeleeBehavior(true)
);
}