Skip to content

Commit

Permalink
Merge pull request #522 from FFXIV-CombatReborn/mergeWIP
Browse files Browse the repository at this point in the history
fix fru
  • Loading branch information
CarnifexOptimus authored Dec 27, 2024
2 parents 8588d12 + f7227a6 commit 1ac4a12
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions BossMod/Modules/Dawntrail/Ultimate/FRU/FRUAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public override void Execute(StrategyValues strategy, Actor? primaryTarget, floa
// assumption: pull range is 12; hitbox is 5, so maxmelee is 8, meaning we have approx 4m to move during pull - with sprint, speed is 7.8, accel is 30 => over 0.26s accel period we move 1.014m, then need another 0.38s to reach boss (but it also moves)
private WPos PrepullPosition(FRU module, PartyRolesConfig.Assignment assignment)
{
if (assignment == PartyRolesConfig.Assignment.Unassigned)
return default;

var safeRange = 12.5f;
var desiredRange = assignment is PartyRolesConfig.Assignment.MT or PartyRolesConfig.Assignment.MT or PartyRolesConfig.Assignment.M1 or PartyRolesConfig.Assignment.M2 ? 5 : 10;
var dir = _config.P1CyclonicBreakSpots[assignment];
Expand Down
3 changes: 1 addition & 2 deletions BossMod/Modules/Dawntrail/Ultimate/FRU/P1CyclonicBreak.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class P1CyclonicBreakAIBait(BossModule module) : BossComponent(module)
public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (assignment == PartyRolesConfig.Assignment.Unassigned)

return;

var clockspot = _config.P1CyclonicBreakSpots[assignment];
Expand All @@ -106,8 +105,8 @@ class P1CyclonicBreakAIDodgeSpreadStack(BossModule module) : BossComponent(modul
public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (assignment == PartyRolesConfig.Assignment.Unassigned)

return;

var clockspot = _config.P1CyclonicBreakSpots[assignment];
if (clockspot < 0 || _cones == null || _spreadStack == null || !_spreadStack.Active)
return;
Expand Down
2 changes: 2 additions & 0 deletions BossMod/Modules/Dawntrail/Ultimate/FRU/P1Explosion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class P1Explosion(BossModule module) : Components.GenericTowers(module)

public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (assignment == PartyRolesConfig.Assignment.Unassigned)
return;
var role = _config.P1ExplosionsAssignment[assignment];
if (role < 0 || TowerDir == default)
return;
Expand Down
2 changes: 1 addition & 1 deletion BossMod/Modules/Dawntrail/Ultimate/FRU/P1UtopianSky.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignme

if (assignment == PartyRolesConfig.Assignment.Unassigned)
return;

var clockspot = _config.P1UtopianSkyInitialSpots[assignment];
if (clockspot >= 0)
{
Expand Down Expand Up @@ -154,7 +155,6 @@ public override void Update()
public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints)
{
if (assignment == PartyRolesConfig.Assignment.Unassigned)

return;

var clockSpot = _config.P1UtopianSkyInitialSpots[assignment];
Expand Down
6 changes: 6 additions & 0 deletions BossMod/Modules/Dawntrail/Ultimate/FRU/P2DiamondDust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ public override void OnEventCast(Actor caster, ActorCastEvent spell)
AOEs.RemoveAt(0);
}
}

public override void OnStatusGain(Actor actor, ActorStatus status)
{
if ((SID)status.ID == SID.ThinIce)
_thinIce.Set(Raid.FindSlot(actor.InstanceID));
}
}

class P2ThinIce(BossModule module) : Components.ThinIce(module, 32, true)
Expand Down

0 comments on commit 1ac4a12

Please sign in to comment.