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

Commit

Permalink
Guren
Browse files Browse the repository at this point in the history
  • Loading branch information
Akechi-kun committed Oct 25, 2024
1 parent 23d92b0 commit 6d8fd24
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions XIVSlothCombo/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3625,6 +3625,10 @@ The three digets after RDM.JobID can be used to reorder items in the list
[CustomComboInfo("Senei Option", "Adds Senei to the rotation.", SAM.JobID)]
SAM_ST_CDs_Senei = 15020,

[ParentCombo(SAM_ST_CDs_Senei)]
[CustomComboInfo("Guren Option", "Adds Guren to the rotation if Senei is not unlocked.", SAM.JobID)]
SAM_ST_CDs_Guren = 15021,

#endregion

[ParentCombo(SAM_ST_AdvancedMode)]
Expand Down
23 changes: 19 additions & 4 deletions XIVSlothCombo/Combos/PvE/SAM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
HasEffect(Buffs.Fugetsu) && HasEffect(Buffs.Fuka))
return Senei;

//Guren if no Senei
if (!LevelChecked(Senei) &&
gauge.Kenki >= 25 && ActionReady(Guren) &&
HasEffect(Buffs.Fugetsu) && HasEffect(Buffs.Fuka))
return Guren;

//Zanshin Usage
if (LevelChecked(Zanshin) && gauge.Kenki >= 50 &&
CanWeave(actionID) && HasEffect(Buffs.ZanshinReady) &&
Expand Down Expand Up @@ -481,10 +487,19 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
}

//Senei Features
if (IsEnabled(CustomComboPreset.SAM_ST_CDs_Senei) &&
gauge.Kenki >= 25 && ActionReady(Senei) &&
HasEffect(Buffs.Fugetsu) && HasEffect(Buffs.Fuka))
return Senei;
if (IsEnabled(CustomComboPreset.SAM_ST_CDs_Senei))
{
if (gauge.Kenki >= 25 && ActionReady(Senei) &&
HasEffect(Buffs.Fugetsu) && HasEffect(Buffs.Fuka))
return Senei;

//Guren if no Senei
if (IsEnabled(CustomComboPreset.SAM_ST_CDs_Guren) &&
!LevelChecked(Senei) &&
gauge.Kenki >= 25 && ActionReady(Guren) &&
HasEffect(Buffs.Fugetsu) && HasEffect(Buffs.Fuka))
return Guren;
}

//Zanshin Usage
if (IsEnabled(CustomComboPreset.SAM_ST_CDs_Zanshin) &&
Expand Down

0 comments on commit 6d8fd24

Please sign in to comment.