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

Commit

Permalink
fix: boss identify.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 5, 2023
1 parent 48b0430 commit 3330ed9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -623,5 +623,6 @@
"33341": 0.1,
"33708": 2.1,
"33907": 2.1,
"34711": 0.1,
"35663": 0.1
}
4 changes: 3 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,5 +472,7 @@
7822,
8915,
13708,
12618
12618,
15728,
15743
]
2 changes: 1 addition & 1 deletion Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ClickingCount": 54988,
"ClickingCount": 56058,
"SaidUsers": []
}
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Data/ActionID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4556,7 +4556,7 @@ public enum ActionID : uint
/// <summary>
///
/// </summary>
PvP_RuinIII = 29664,
PvP_Ruin3 = 29664,

/// <summary>
///
Expand Down
8 changes: 6 additions & 2 deletions RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ public static bool IsBoss(this BattleChara obj)
if (obj == null) return false;
if (obj.IsDummy() && !Service.Config.GetValue(Configuration.PluginConfigBool.ShowTargetTimeToKill)) return true;

return obj.GetTimeToKill(true) >= Service.Config.GetValue(Configuration.PluginConfigFloat.BossTimeToKill)
|| obj.GetObjectNPC()?.Rank is 1 or 2 /*or 4*/ or 6;
//Icon
if (obj.GetObjectNPC()?.Rank is 1 or 2 /*or 4*/ or 6) return true;

//Fate
if (obj.FateId() != 0 && obj.GetTimeToKill(true) >= Service.Config.GetValue(Configuration.PluginConfigFloat.BossTimeToKill)) return true;
return false;
}

/// <summary>
Expand Down

0 comments on commit 3330ed9

Please sign in to comment.