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

Commit

Permalink
fix: FIx the Moving targeting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 24, 2023
1 parent 9f90915 commit bf37562
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ private protected CustomRotation()
Configs = CreateConfiguration();
}

public BattleChara MoveTarget
{
get
{
if (MoveForwardAbility(1, out var act) && act is BaseAction a) return a.Target;
return null;
}
}
public BattleChara MoveTarget { get; private set; }

public string Description => string.Join('\n', DescriptionDict.Select(pair => pair.Key.ToName() + " → " + pair.Value));

Expand All @@ -74,5 +67,8 @@ private protected virtual IRotationConfigSet CreateConfiguration()
/// <summary>
/// Update your customized field.
/// </summary>
private protected virtual void UpdateInfo() { }
private protected virtual void UpdateInfo()
{
MoveTarget = (MoveForwardAbility(1, out var act) && act is BaseAction a) ? a.Target : null;
}
}
5 changes: 0 additions & 5 deletions RotationSolver/Rotations/RangedMagicial/BLM/BLM_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ private protected override IRotationConfigSet CreateConfiguration()
.SetBool("AutoLeylines", true, "Auto use Leylines");
}

private protected override void UpdateInfo()
{
base.UpdateInfo();
}

private protected override IAction CountDownAction(float remainTime)
{
//战斗前激情
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Rotations/RangedMagicial/BLU/BLU_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private protected override void UpdateInfo()
{
BlueId = (BLUID)Configs.GetCombo("BlueId");
AttackType = (BLUAttackType)Configs.GetCombo("AttackType");
base.UpdateInfo();
}

private protected override bool AttackAbility(byte abilitiesRemaining, out IAction act)
Expand Down

0 comments on commit bf37562

Please sign in to comment.