Skip to content

Commit

Permalink
BLM Update
Browse files Browse the repository at this point in the history
(High) Fire 2 lower level optimization (ty @kaedys)
  • Loading branch information
MKhayle committed Jul 8, 2024
1 parent f3ae469 commit ddea44c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions XIVComboExpanded/Combos/BLM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public const uint
Blizzard2 = 25793,
HighFire2 = 25794,
HighBlizzard2 = 25795,
Paradox = 25797;
Paradox = 25797,
FlareStar = 38072;

public static class Buffs
{
Expand Down Expand Up @@ -70,7 +71,8 @@ public const byte
HighFire2 = 82,
HighBlizzard2 = 82,
EnhancedSharpcast2 = 88,
Paradox = 90;
Paradox = 90,
FlareStar = 100;
}

public static class MpCosts
Expand Down Expand Up @@ -308,7 +310,21 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

if (level >= BLM.Levels.Flare && gauge.InAstralFire)
{
return BLM.Flare;
// Level 100 uses a simplified rotation that just uses Flare twice and then Flare Star.
if (level >= BLM.Levels.FlareStar)
{
// FIXME: Uncomment once the Astral Soul gauge is implemented
// if (gauge.AstralSoulStacks >= 6)
// return BLM.FlareStar

return BLM.Flare;
}

// At level 50, Fire II is used until under 3800 mana (the combined cost of Fire II and Flare),
// and then Flare is cast once.
// At level 58, Fire II is used until 1 Umbral Heart is remaining, and then Flare is cast twice.
if (LocalPlayer?.CurrentMp < BLM.MpCosts.Fire2 + BLM.MpCosts.Flare || gauge.UmbralHearts == 1)
return BLM.Flare;
}
}

Expand Down
2 changes: 1 addition & 1 deletion XIVComboExpanded/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public enum CustomComboPreset
[CustomComboInfo("Freeze/Flare Feature", "Freeze and Flare become whichever action you can currently use.", BLM.JobID)]
BlackFreezeFlareFeature = 2506,

[CustomComboInfo("Fire 2 Feature", "(High) Fire 2 becomes Flare when in Astral Fire.", BLM.JobID)]
[CustomComboInfo("Fire 2 Feature", "(High) Fire 2 becomes Flare when in Astral Fire and is optimal.", BLM.JobID)]
BlackFire2Feature = 2508,

[CustomComboInfo("Ice 2 Feature", "(High) Blizzard 2 becomes Freeze in Umbral Ice.", BLM.JobID)]
Expand Down

0 comments on commit ddea44c

Please sign in to comment.