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

Commit

Permalink
fix: fixed the mark action check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 30, 2023
1 parent 27d692f commit d340b19
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 7 deletions.
19 changes: 18 additions & 1 deletion Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"7562": 0.6,
"7568": 0.1,
"9793": 0.1,
"10083": 0.1,
"12260": 0.1,
"16137": 0.6,
"16138": 0.6,
Expand Down Expand Up @@ -104,6 +105,21 @@
"16553": 0.6,
"17215": 0.1,
"20243": 0.1,
"21054": 2.1,
"24283": 0.1,
"24285": 0.6,
"24289": 0.6,
"24290": 0.6,
"24291": 0.6,
"24294": 0.6,
"24296": 0.6,
"24297": 0.6,
"24298": 0.6,
"24302": 0.6,
"24303": 0.6,
"24304": 0.6,
"24312": 0.1,
"24313": 0.6,
"25751": 0.6,
"25752": 0.6,
"25753": 1.15,
Expand All @@ -112,5 +128,6 @@
"25796": 0.6,
"25797": 0.6,
"25865": 0.1,
"25870": 0.6
"25870": 0.6,
"31323": 2.1
}
7 changes: 6 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
[]
[
13389,
13440,
13461,
13462
]
16 changes: 15 additions & 1 deletion Resources/HostileCastingTank.json
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
[]
[
13364,
13365,
13367,
13371,
13375,
13385,
13388,
13438,
13444,
13452,
13454,
13462,
13475
]
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Actions/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private bool TargetHostile(float range, bool mustUse, int aoeCount, out BattleCh
if (Service.Config.ChooseAttackMark)
{
var b = MarkingHelper.GetAttackMarkChara(DataCenter.HostileTargets);
if (b != null && TargetFilterFuncEot(new BattleChara[] { b }, mustUse).Any())
if (b != null && GetMostObjects(TargetFilterFuncEot(new BattleChara[] { b }, mustUse), Service.Config.CanAttackMarkAOE ? aoeCount : int.MaxValue).Any())
{
target = b;
return true;
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver/Updaters/SocialUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ private static async void SayHelloToAuthor()
await Task.Delay(100);
}

#if DEBUG
#else
Service.TargetManager.SetTarget(author.c);
Service.SubmitToChat($"/{_macroToAuthor[new Random().Next(_macroToAuthor.Count)]} <t>");
#endif
var message = new SeString(new IconPayload(BitmapFontIcon.Mentor),

new UIForegroundPayload(31),
Expand Down
5 changes: 2 additions & 3 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ private static bool IsHostileCastingTank(BattleChara h)
{
return IsHostileCastingBase(h, (act) =>
{
return OtherConfiguration.HostileCastingTank.Contains(act.RowId);

//return h.CastTargetObjectId == h.TargetObjectId;
return OtherConfiguration.HostileCastingTank.Contains(act.RowId)
|| h.CastTargetObjectId == h.TargetObjectId;
});
}

Expand Down

0 comments on commit d340b19

Please sign in to comment.