Files
SVSimServer/SVSim.BattleEngine/Engine/SpellSkillCollection.cs
gamer147 824309ec44 feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the
AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed
the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
2026-06-05 20:30:59 -04:00

27 lines
1.1 KiB
C#

using System.Collections.Generic;
using System.Linq;
using Wizard;
using Wizard.Battle.View.Vfx;
public class SpellSkillCollection : SkillCollectionBase
{
public SpellSkillCollection(BattleCardBase ownerCard)
: base(ownerCard)
{
}
public override VfxWith<SkillProcessor.ProcessInfo> CreateWhenPlayInfo(BattleCardBase playCard, SkillProcessor skillProcessor, BattlePlayerReadOnlyInfoPair playerInfoPair, SkillConditionCheckerOption option)
{
SkillProcessor.ProcessInfo value = CreateProcessInfo((SkillBase s) => s.OnWhenPlayStart, skillProcessor, playerInfoPair, option);
return new VfxWith<SkillProcessor.ProcessInfo>(NullVfx.GetInstance(), value);
}
public override bool CheckWhenPlayCondition(BattlePlayerReadOnlyInfoPair playerInfoPair, bool isPrePlay)
{
List<SkillBase> list = _skillList.Where((SkillBase s) => s.IsWhenPlaySkill).ToList();
SkillBase item = list.First((SkillBase s) => s is Skill_spell_charge);
list.Remove(item);
return list.Any((SkillBase s) => s.CheckCondition(playerInfoPair, new SkillConditionCheckerOption(), isPrePlay));
}
}