From 39fa3b9c7445180c5efc2095e3b40ea2bdb507a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Tue, 18 Apr 2023 23:35:35 +0800 Subject: [PATCH] fix: changed the EffectRange of LiturgyOfTheBell --- RotationSolver.Basic/Actions/BaseAction_Target.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/RotationSolver.Basic/Actions/BaseAction_Target.cs b/RotationSolver.Basic/Actions/BaseAction_Target.cs index 6c2af10cc..91f14db7e 100644 --- a/RotationSolver.Basic/Actions/BaseAction_Target.cs +++ b/RotationSolver.Basic/Actions/BaseAction_Target.cs @@ -161,7 +161,8 @@ private bool TargetAreaFriend(float range, bool mustUse, PlayerCharacter player) //计算玩家和被打的T之间的关系。 else { - var attackT = TargetFilter.FindAttackedTarget(DataCenter.PartyTanks.GetObjectInRadius(range + _action.EffectRange), mustUse); + var effectRange = (ActionID)ID == ActionID.LiturgyOfTheBell ? 20 : _action.EffectRange; + var attackT = TargetFilter.FindAttackedTarget(DataCenter.PartyTanks.GetObjectInRadius(range + effectRange), mustUse); if (attackT == null) { @@ -171,15 +172,15 @@ private bool TargetAreaFriend(float range, bool mustUse, PlayerCharacter player) { var disToTankRound = Vector3.Distance(player.Position, attackT.Position) + attackT.HitboxRadius; - if (disToTankRound < _action.EffectRange - || disToTankRound > 2 * _action.EffectRange - player.HitboxRadius) + if (disToTankRound < effectRange + || disToTankRound > 2 * effectRange - player.HitboxRadius) { _position = player.Position; } else { Vector3 directionToTank = attackT.Position - player.Position; - var MoveDirection = directionToTank / directionToTank.Length() * Math.Max(0, disToTankRound - _action.EffectRange); + var MoveDirection = directionToTank / directionToTank.Length() * Math.Max(0, disToTankRound - effectRange); _position = player.Position + MoveDirection; } }