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

Commit

Permalink
style: change the moving target coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 28, 2023
1 parent 1326219 commit 415cf36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions RotationSolver/Actions/BaseAction/BaseAction_ActionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,8 @@ public unsafe virtual bool CanUse(out IAction act, bool mustUse = false, bool em
}
}

if (CastTime > 0 && MovingUpdater.IsMoving)
{
if (!player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide))
{
return false;
}
}
if (CastTime > 0 && MovingUpdater.IsMoving &&
!player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide)) return false;

if (!FindTarget(mustUse, out var target)) return false;

Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ private bool TargetAreaMove(float range, bool mustUse, out BattleChara target)
{
Vector3 pPosition = Service.ClientState.LocalPlayer.Position;
float rotation = Service.ClientState.LocalPlayer.Rotation;
_position = new Vector3(pPosition.X + (float)Math.Sin(rotation), pPosition.Y,
pPosition.Z + (float)Math.Cos(rotation));
_position = new Vector3(pPosition.X + (float)Math.Sin(rotation) * range, pPosition.Y,
pPosition.Z + (float)Math.Cos(rotation) * range);
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Rotations/Basic/BLU_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public override bool CanUse(out IAction act, bool mustUse = false, bool emptyOrS
/// <summary>
/// 若隐若现
/// </summary>
private static IBLUAction Loom { get; } = new BLUAction(ActionID.Loom, BLUActionType.None);
private static IBLUAction Loom { get; } = new BLUAction(ActionID.Loom, BLUActionType.None, shouldEndSpecial: true);

/// <summary>
/// 斗争本能
Expand Down

0 comments on commit 415cf36

Please sign in to comment.