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

Commit

Permalink
NIN Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey committed Aug 23, 2024
1 parent b5503bd commit 3ef438c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions XIVSlothCombo/Combos/JobHelpers/NIN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ internal class NINHelper : PvE.NIN
internal static bool TrickDebuff => TargetHasTrickDebuff();
private static bool TargetHasTrickDebuff()
{
return CustomComboFunctions.TargetHasEffect(Debuffs.TrickAttack) || CustomComboFunctions.TargetHasEffect(Debuffs.Dokumori);
return CustomComboFunctions.TargetHasEffect(Debuffs.TrickAttack) || CustomComboFunctions.TargetHasEffect(Debuffs.KunaisBane);
}

internal static bool MugDebuff => TargetHasMugDebuff();

private static bool TargetHasMugDebuff()
{
return CustomComboFunctions.TargetHasEffect(Debuffs.Mug) || CustomComboFunctions.TargetHasEffect(Debuffs.KunaisBane);
return CustomComboFunctions.TargetHasEffect(Debuffs.Mug) || CustomComboFunctions.TargetHasEffect(Debuffs.Dokumori);
}

internal static bool InMudra => GetInMudra();
Expand Down
6 changes: 3 additions & 3 deletions XIVSlothCombo/Combos/PvE/NIN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
bool useBhakaBeforeTrickWindow = GetCooldownRemainingTime(TrickAttack) >= 3;
bool setupSuitonWindow = GetCooldownRemainingTime(OriginalHook(TrickAttack) ) <= GetOptionValue(Config.Trick_CooldownRemaining) && !HasEffect(Buffs.ShadowWalker);
bool setupKassatsuWindow = GetCooldownRemainingTime(TrickAttack) <= 10 && HasEffect(Buffs.ShadowWalker);
bool chargeCheck = IsNotEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_ChargeHold) || (IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_ChargeHold) && (GetRemainingCharges(Ten) == 2 || (GetRemainingCharges(Ten) == 1 && GetCooldownChargeRemainingTime(Ten) < 3)));
bool poolCharges = !GetOptionBool(Config.Advanced_ChargePool) || (GetRemainingCharges(Ten) == 1 && GetCooldownChargeRemainingTime(Ten) < 2) || NINHelper.TrickDebuff;
bool chargeCheck = IsNotEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_ChargeHold) || (IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Ninjitsus_ChargeHold) && (NINHelper.InMudra || GetRemainingCharges(Ten) == 2 || (GetRemainingCharges(Ten) == 1 && GetCooldownChargeRemainingTime(Ten) < 3)));
bool poolCharges = !GetOptionBool(Config.Advanced_ChargePool) || (GetRemainingCharges(Ten) == 1 && GetCooldownChargeRemainingTime(Ten) < 2) || NINHelper.TrickDebuff || NINHelper.InMudra;
bool raitonUptime = IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Raiton_Uptime);
bool suitonUptime = IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Suiton_Uptime);
int bhavaPool = GetOptionValue(Config.Ninki_BhavaPooling);
Expand Down Expand Up @@ -198,7 +198,7 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
(IsNotEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Mug) || (IsEnabled(CustomComboPreset.NIN_ST_AdvancedMode_Mug) && IsOnCooldown(Mug))))
mudraState.CurrentMudra = MudraCasting.MudraState.CastingHyoshoRanryu;

if (mudraState.CurrentMudra != MudraCasting.MudraState.None)
if (NINHelper.InMudra)
{
if (mudraState.ContinueCurrentMudra(ref actionID))
return actionID;
Expand Down

0 comments on commit 3ef438c

Please sign in to comment.