Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Added ability to specify dance partner #246

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions BasicRotations/Ranged/DNC_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand Down