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

Commit

Permalink
Merge pull request #1496 from zbee/main
Browse files Browse the repository at this point in the history
DRK Support disabling of Action Change, and lower level buffs
  • Loading branch information
Taurenkey authored Jul 11, 2024
2 parents ef6254a + 58df150 commit 8e56d40
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
4 changes: 2 additions & 2 deletions XIVSlothCombo/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ public enum CustomComboPreset
#region Buff Options

[ParentCombo(DRK_ST_Combo)]
[CustomComboInfo("Delirium on Cooldown", "Adds Delirium to main combo on cooldown and when Darkside is up. Will also spend 50 blood gauge if Delirium is nearly ready to protect from overcap.", DRK.JobID)]
[CustomComboInfo("Delirium on Cooldown", "Adds Delirium (or Blood Weapon at lower levels) to main combo on cooldown and when Darkside is up. Will also spend 50 blood gauge if Delirium is nearly ready to protect from overcap.", DRK.JobID)]
DRK_ST_Delirium = 5002,

[ParentCombo(DRK_ST_Delirium)]
Expand Down Expand Up @@ -1105,7 +1105,7 @@ public enum CustomComboPreset
#region Buff Options

[ParentCombo(DRK_AoE_Combo)]
[CustomComboInfo("Delirium Option", "Adds Delirium to AoE combo on cooldown and when Darkside is up.", DRK.JobID)]
[CustomComboInfo("Delirium Option", "Adds Delirium (or Blood Weapon at lower levels) to AoE combo on cooldown and when Darkside is up.", DRK.JobID)]
DRK_AoE_Delirium = 5017,

[ParentCombo(DRK_AoE_Delirium)]
Expand Down
45 changes: 25 additions & 20 deletions XIVSlothCombo/Combos/PvE/DRK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public const uint
Impalement = 36931, // Under Delirium

// Buffing oGCDs
BloodWeapon = 3625,
Delirium = 7390,

// Burst Window
Expand Down Expand Up @@ -184,22 +185,24 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

// Delirium
if (IsEnabled(CustomComboPreset.DRK_ST_Delirium)
&& IsOffCooldown(Delirium)
&& LevelChecked(Delirium))
return Delirium;
&& IsOffCooldown(BloodWeapon)
&& LevelChecked(BloodWeapon))
return OriginalHook(Delirium);

if (IsEnabled(CustomComboPreset.DRK_ST_CDs))
{
// Salted Earth
if (IsEnabled(CustomComboPreset.DRK_ST_CDs_SaltedEarth)
&& (ActionReady(SaltedEarth) || ActionReady(SaltAndDarkness)))
if (IsEnabled(CustomComboPreset.DRK_ST_CDs_SaltedEarth))
{
// Cast Salted Earth
if (!HasEffect(Buffs.SaltedEarth)
&& ActionReady(SaltedEarth) // Cast Salted Earth
|| (HasEffect(Buffs.SaltedEarth)
&& GetBuffRemainingTime(Buffs.SaltedEarth) < 9
&& ActionReady(SaltAndDarkness))) //Cast Salt and Darkness
return OriginalHook(SaltedEarth);
&& ActionReady(SaltedEarth))
return SaltedEarth;
//Cast Salt and Darkness
if (HasEffect(Buffs.SaltedEarth)
&& GetBuffRemainingTime(Buffs.SaltedEarth) < 9
&& ActionReady(SaltAndDarkness))
return OriginalHook(SaltAndDarkness);
}

// Shadowbringer
Expand Down Expand Up @@ -331,22 +334,24 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

// Delirium
if (IsEnabled(CustomComboPreset.DRK_AoE_Delirium)
&& IsOffCooldown(Delirium)
&& LevelChecked(Delirium))
return Delirium;
&& IsOffCooldown(BloodWeapon)
&& LevelChecked(BloodWeapon))
return OriginalHook(Delirium);

if (gauge.DarksideTimeRemaining > 1)
{
// Salted Earth
if (IsEnabled(CustomComboPreset.DRK_AoE_CDs_SaltedEarth)
&& (ActionReady(SaltedEarth) || ActionReady(SaltAndDarkness)))
if (IsEnabled(CustomComboPreset.DRK_AoE_CDs_SaltedEarth))
{
// Cast Salted Earth
if (!HasEffect(Buffs.SaltedEarth)
&& ActionReady(SaltedEarth) // Cast Salted Earth
|| (HasEffect(Buffs.SaltedEarth)
&& GetBuffRemainingTime(Buffs.SaltedEarth) < 9
&& ActionReady(SaltAndDarkness))) //Cast Salt and Darkness
return OriginalHook(SaltedEarth);
&& ActionReady(SaltedEarth))
return SaltedEarth;
//Cast Salt and Darkness
if (HasEffect(Buffs.SaltedEarth)
&& GetBuffRemainingTime(Buffs.SaltedEarth) < 9
&& ActionReady(SaltAndDarkness))
return OriginalHook(SaltAndDarkness);
}

// Shadowbringer
Expand Down

0 comments on commit 8e56d40

Please sign in to comment.