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

Commit

Permalink
fix: blu mimicry.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Aug 7, 2023
1 parent ff53c01 commit 46a49c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion RotationSolver.Basic/Actions/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ internal unsafe bool CanUseTo(GameObject tar)

var tarAddress = tar.Struct();

if (!IsTargetArea && !ActionManager.CanUseActionOnTarget(AdjustedID, tarAddress)) return false;
if (!IsTargetArea && (ActionID)ID != ActionID.AethericMimicry
&& !ActionManager.CanUseActionOnTarget(AdjustedID, tarAddress)) return false;

var point = Player.Object.Position + Vector3.UnitY * Player.GameObject->Height;
var tarPt = tar.Position + Vector3.UnitY * tar.Struct()->Height;
Expand Down
10 changes: 8 additions & 2 deletions RotationSolver.Basic/Rotations/Basic/BLU_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public override bool CanUse(out IAction act, CanUseOption option = CanUseOption.
ActionCheck = (b, m) => Svc.Condition[Dalamud.Game.ClientState.Conditions.ConditionFlag.BoundByDuty56] && DataCenter.PartyMembers.Count(p => p.GetHealthRatio() > 0) == 1,
};

static IBLUAction AethericMimicry { get; } = new BLUAction(ActionID.AethericMimicry, ActionOption.Friendly)
static IBaseAction AethericMimicry { get; } = new BaseAction(ActionID.AethericMimicry, ActionOption.Friendly)
{
ChoiceTarget = (charas, mustUse) =>
{
Expand Down Expand Up @@ -1035,7 +1035,7 @@ protected override bool EmergencyGCD(out IAction act)
/// All base actions.
/// </summary>
public override IBaseAction[] AllBaseActions => base.AllBaseActions
.Where(a => a is IBLUAction b && b.OnSlot).ToArray();
.Where(a => a is not IBLUAction b || b.OnSlot).ToArray();

/// <summary>
/// Configurations.
Expand Down Expand Up @@ -1089,4 +1089,10 @@ protected override bool HealAreaGCD(out IAction act)
if (WhiteWind.CanUse(out act, CanUseOption.MustUse)) return true;
return base.HealAreaGCD(out act);
}

public override void DisplayStatus()
{
ImGui.TextWrapped(BlueId.ToString());
base.DisplayStatus();
}
}

0 comments on commit 46a49c9

Please sign in to comment.