Skip to content

Commit

Permalink
Merge pull request #233 from diwo/pld-holy-circle-downlevel
Browse files Browse the repository at this point in the history
Fix Paladin Prominence combo stuck on Holy Circle when downleveled
  • Loading branch information
daemitus authored Sep 4, 2023
2 parents 2de975c + f00472e commit e43f6ad
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions XIVComboExpanded/Combos/PLD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
// During FoF, prioritize the higher-potency Divine Might cast over Atonement and the normal combo chain
if (IsEnabled(CustomComboPreset.PaladinRoyalAuthorityFightOrFlightFeature))
{
if (HasEffect(PLD.Buffs.FightOrFlight) && HasEffect(PLD.Buffs.DivineMight) && HasMp(PLD.HolySpirit))
return PLD.HolySpirit;
if (HasEffect(PLD.Buffs.FightOrFlight) && HasEffect(PLD.Buffs.DivineMight))
if (level >= PLD.Levels.HolySpirit && HasMp(PLD.HolySpirit))
return PLD.HolySpirit;
}

if (IsEnabled(CustomComboPreset.PaladinRoyalAuthorityAtonementFeature))
Expand All @@ -129,8 +130,9 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
{
if (IsEnabled(CustomComboPreset.PaladinRoyalAuthorityDivineMightFeature))
{
if (level >= PLD.Levels.HolySpirit && HasEffect(PLD.Buffs.DivineMight) && HasMp(PLD.HolySpirit))
return PLD.HolySpirit;
if (HasEffect(PLD.Buffs.DivineMight))
if (level >= PLD.Levels.HolySpirit && HasMp(PLD.HolySpirit))
return PLD.HolySpirit;
}

// Royal Authority
Expand All @@ -157,11 +159,12 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
{
if (actionID == PLD.Prominence)
{
// During FoF, prioritize the higher-potency Divine Might cast over Atonement and the normal combo chain
// During FoF, prioritize the higher-potency Divine Might cast over the normal combo chain
if (IsEnabled(CustomComboPreset.PaladinProminenceDivineMightFeature))
{
if (HasEffect(PLD.Buffs.FightOrFlight) && HasEffect(PLD.Buffs.DivineMight) && HasMp(PLD.HolyCircle))
return PLD.HolyCircle;
if (HasEffect(PLD.Buffs.FightOrFlight) && HasEffect(PLD.Buffs.DivineMight))
if (level >= PLD.Levels.HolyCircle && HasMp(PLD.HolyCircle))
return PLD.HolyCircle;
}

if (comboTime > 0)
Expand All @@ -170,8 +173,9 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
{
if (IsEnabled(CustomComboPreset.PaladinProminenceDivineMightFeature))
{
if (level >= PLD.Levels.HolyCircle && HasEffect(PLD.Buffs.DivineMight) && HasMp(PLD.HolyCircle))
return PLD.HolyCircle;
if (HasEffect(PLD.Buffs.DivineMight))
if (level >= PLD.Levels.HolyCircle && HasMp(PLD.HolyCircle))
return PLD.HolyCircle;
}

return PLD.Prominence;
Expand Down

0 comments on commit e43f6ad

Please sign in to comment.