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

Commit

Permalink
ow level fix for 30-45
Browse files Browse the repository at this point in the history
Added low level section before suiton to raiton and fuma correctly
  • Loading branch information
edewen committed Sep 10, 2024
1 parent c552845 commit c6fb3d1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion XIVSlothCombo/Combos/PvE/NIN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,23 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

if (IsNotEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus) || (ActionWatching.TimeSinceLastAction.TotalSeconds >= 5 && !InCombat()))
mudraState.CurrentMudra = MudraCasting.MudraState.None;

if (IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_Suiton) && IsOnCooldown(TrickAttack) && mudraState.CurrentMudra == MudraCasting.MudraState.CastingSuiton && !setupSuitonWindow)
mudraState.CurrentMudra = MudraCasting.MudraState.None;

if (IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_Suiton) && IsOnCooldown(TrickAttack) && mudraState.CurrentMudra != MudraCasting.MudraState.CastingSuiton && setupSuitonWindow)
mudraState.CurrentMudra = MudraCasting.MudraState.CastingSuiton;

if (!Suiton.LevelChecked()) //For low level
{
if (Raiton.LevelChecked() && IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_Raiton)) //under 45 will only use Raiton
{
if (mudraState.CastRaiton(ref actionID))
return actionID;
}
else if (!Raiton.LevelChecked() && mudraState.CastFumaShuriken(ref actionID) && IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_FumaShuriken)) // 30-35 will use only fuma
return actionID;
}

if (OriginalHook(Ninjutsu) is Rabbit)
return OriginalHook(Ninjutsu);
Expand Down

0 comments on commit c6fb3d1

Please sign in to comment.