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

Commit

Permalink
fix: add a hitbox radius check for TargetAreaFriend.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 31, 2023
1 parent 5c84281 commit 370466a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RotationSolver.Basic/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ private bool TargetAreaFriend(float range, bool mustUse, PlayerCharacter player)
if (!Service.Config.UseGroundBeneficialAbility) return false;

//如果当前目标是Boss且有身位,放他身上。
if (Service.TargetManager.Target is BattleChara b && b.DistanceToPlayer() < range && b.IsBoss() && b.HasPositional())
if (Service.TargetManager.Target is BattleChara b && b.DistanceToPlayer() < range &&
b.IsBoss() && b.HasPositional() && b.HitboxRadius < _action.EffectRange + 2)
{
_position = b.Position;
}
Expand Down

0 comments on commit 370466a

Please sign in to comment.