From 6d39034ba535535cf9590663eecd62f15037dcdf Mon Sep 17 00:00:00 2001 From: Four-amer Date: Sat, 21 Sep 2024 01:54:48 +0200 Subject: [PATCH] Added ability to specify dance partner --- BasicRotations/Ranged/DNC_Default.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BasicRotations/Ranged/DNC_Default.cs b/BasicRotations/Ranged/DNC_Default.cs index 8d2562e..5073e65 100644 --- a/BasicRotations/Ranged/DNC_Default.cs +++ b/BasicRotations/Ranged/DNC_Default.cs @@ -11,6 +11,9 @@ public sealed class DNC_Default : DancerRotation [RotationConfig(CombatType.PvE, Name = "Holds Standard Step if no targets in range (Warning, will drift & Buff may fall off)")] public bool HoldStepForTargets { get; set; } = false; + + [RotationConfig(CombatType.PvE, Name = "Dance Partner Name (If empty or not found uses default dance partner priority)")] + public string DancePartnerName { get; set; } = ""; #endregion bool shouldUseLastDance = true; @@ -115,6 +118,12 @@ protected override bool GeneralGCD(out IAction? act) // Attempt to use Closed Position if applicable if (!InCombat && !Player.HasStatus(true, StatusID.ClosedPosition) && ClosedPositionPvE.CanUse(out act)) { + + if (DancePartnerName != "") + foreach (var player in PartyMembers) + if (player.Name.ToString() == DancePartnerName) + ClosedPositionPvE.Target = new TargetResult(player, [player], player.Position); + return true; }