mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-30 10:19:51 +08:00
28 lines
799 B
C#
28 lines
799 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace BetterGenshinImpact.GameTask.AutoGeniusInvokation.Model;
|
|
|
|
[Obsolete]
|
|
public class RoundStrategy
|
|
{
|
|
public List<string> RawCommandList { get; set; } = [];
|
|
|
|
public List<ActionCommand> ActionCommands { get; set; } = [];
|
|
|
|
public List<ElementalType> MaybeNeedElement(Duel duel)
|
|
{
|
|
List<ElementalType> result = [];
|
|
|
|
for (int i = 0; i < ActionCommands.Count; i++)
|
|
{
|
|
if (ActionCommands[i].Action == ActionEnum.SwitchLater
|
|
&& i != ActionCommands.Count - 1
|
|
&& ActionCommands[i + 1].Action == ActionEnum.UseSkill)
|
|
{
|
|
result.Add(duel.Characters[ActionCommands[i].TargetIndex].Element);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
} |