Skip to content

Commit 07fed4f

Browse files
authored
Merge pull request #634 from aventurescence/espiritopti
Enhanced Dancer Logic •⩊•
2 parents 9e664b8 + 237e945 commit 07fed4f

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

BasicRotations/Ranged/DNC_Default.cs

+19-5
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,10 @@ private bool AttackGCD(out IAction? act, bool burst)
196196
act = null;
197197

198198
if (IsDancing) return false;
199+
// Use Dance of the Dawn immediately if available
200+
if (burst && Esprit > 50 && DanceOfTheDawnPvE.CanUse(out act)) return true;
199201

200-
if (!DevilmentPvE.CanUse(out _, skipComboCheck: true))
201-
{
202-
if (TillanaPvE.CanUse(out act, skipAoeCheck: true)) return true;
203-
}
202+
if (HandleTillana(out act)) return true;
204203

205204
if (TechnicalStepPvE.Cooldown.ElapsedAfter(103))
206205
{
@@ -238,7 +237,7 @@ private bool AttackGCD(out IAction? act, bool burst)
238237
if (FinishingMovePvE.CanUse(out act, skipAoeCheck: true)) return true;
239238

240239
// Further prioritized GCD abilities
241-
if ((burst || (Esprit >= 85 && !TechnicalStepPvE.Cooldown.ElapsedAfter(115))) && SaberDancePvE.CanUse(out act, skipAoeCheck: true)) return true;
240+
if ((burst || (Esprit >= 70 && !TechnicalStepPvE.Cooldown.ElapsedAfter(115))) && SaberDancePvE.CanUse(out act, skipAoeCheck: true)) return true;
242241

243242
if (StarfallDancePvE.CanUse(out act, skipAoeCheck: true)) return true;
244243

@@ -319,5 +318,20 @@ private bool FinishTheDance(out IAction? act)
319318
act = null;
320319
return false;
321320
}
321+
322+
// Handles the logic for using the Tillana.
323+
private bool HandleTillana(out IAction? act)
324+
{
325+
// Check if Esprit is less than or equal to 50 and Devilment cannot be used
326+
if (Esprit <= 45 && !DevilmentPvE.CanUse(out _, skipComboCheck: true))
327+
{
328+
// Attempt to use Tillana, skipping the AoE check
329+
if (TillanaPvE.CanUse(out act, skipAoeCheck: true)) return true;
330+
}
331+
332+
// No Tillana action was performed
333+
act = null;
334+
return false;
335+
}
322336
#endregion
323337
}

0 commit comments

Comments
 (0)