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

Commit

Permalink
fix: CastType 10 rings targeting for blu.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 28, 2023
1 parent 6d85dd0 commit 08cd530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RotationSolver/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ internal bool CanGetTarget(BattleChara target, BattleChara subTarget)
switch (_action.CastType)
{
case 10: //环形范围攻击也就这么判断吧,我烦了。
var dis = Vector3.Distance(target.Position, subTarget.Position) - subTarget.HitboxRadius;
return dis <= _action.EffectRange && dis >= 8;

case 2: // 圆形范围攻击
return Vector3.Distance(target.Position, subTarget.Position) - subTarget.HitboxRadius <= _action.EffectRange;

Expand Down

0 comments on commit 08cd530

Please sign in to comment.