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

Commit

Permalink
fix: Vfc check safer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 13, 2023
1 parent d804ac3 commit 208aa1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Resources/DangerousStatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
2965,
3364,
3521,
3776,
3776
]
14 changes: 11 additions & 3 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,21 @@ private static bool IsCastingAreaVfx()
private static bool IsCastingVfx(Func<VfxNewData, bool> isVfx)
{
if (isVfx == null) return false;
foreach (var item in DataCenter.VfxNewData.Reverse())
try
{
if (item.TimeDuration.TotalSeconds is > 1 and < 5)
foreach (var item in DataCenter.VfxNewData.Reverse())
{
if (isVfx(item)) return true;
if (item.TimeDuration.TotalSeconds is > 1 and < 5)
{
if (isVfx(item)) return true;
}
}
}
catch
{

}

return false;
}

Expand Down

0 comments on commit 208aa1c

Please sign in to comment.