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

Commit

Permalink
Merge commit 'refs/pull/1802/head' of https://github.com/Nik-Potokar/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey committed Sep 14, 2024
2 parents dfabcc3 + 04a420e commit 21b7483
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions XIVSlothCombo/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4467,6 +4467,11 @@ The three digets after RDM.JobID can be used to reorder items in the list
[CustomComboInfo("AoE DPS Feature", "Collection of cooldowns and spell features on Holy/Holy III.", WHM.JobID, 2, "", "")]
WHM_AoE_DPS = 19190,

[ParentCombo(WHM_AoE_DPS)]
[CustomComboInfo("Swift Holy Pull 'Opener' Option", "Adds a Swiftcast->Holy at the beginning of your AoE rotation." +
"\nRequires you to already be in combat, to have stopped moving, and to not have used Assize yet.", WHM.JobID, 20, "", "")]
WHM_AoE_DPS_SwiftHoly = 19197,

[ParentCombo(WHM_AoE_DPS)]
[CustomComboInfo("Assize Option", "Adds Assize to the AoE combo.", WHM.JobID, 21, "", "")]
WHM_AoE_DPS_Assize = 19192,
Expand Down
9 changes: 9 additions & 0 deletions XIVSlothCombo/Combos/PvE/WHM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
internal class WHM_AoE_DPS : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.WHM_AoE_DPS;
internal static int AssizeCount => ActionWatching.CombatActions.Count(x => x == Assize);

protected override uint Invoke(uint actionID, uint lastComboMove, float comboTime, byte level)
{
Expand All @@ -437,6 +438,14 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
bool liliesNearlyFull = gauge.Lily == 2 && gauge.LilyTimer >= 17000;
bool PresenceOfMindReady = ActionReady(PresenceOfMind) && (!Config.WHM_AoEDPS_PresenceOfMindWeave);

if (IsEnabled(CustomComboPreset.WHM_AoE_DPS_SwiftHoly) &&
ActionReady(All.Swiftcast) &&
AssizeCount == 0 && !IsMoving && InCombat())
return All.Swiftcast;
if (IsEnabled(CustomComboPreset.WHM_AoE_DPS_SwiftHoly) &&
WasLastAction(All.Swiftcast))
return actionID;

if (IsEnabled(CustomComboPreset.WHM_AoE_DPS_Assize) && ActionReady(Assize))
return Assize;

Expand Down

0 comments on commit 21b7483

Please sign in to comment.