2025-10-30 12:07:59 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Continentis.MainGame.Card;
|
|
|
|
|
using Continentis.MainGame.Character;
|
|
|
|
|
using Continentis.MainGame.Commands;
|
|
|
|
|
using SLSFramework.General;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
|
|
|
{
|
|
|
|
|
public class BattlefieldExperience : CardLogicBase
|
|
|
|
|
{
|
|
|
|
|
protected override void SetUpLogicComponents()
|
|
|
|
|
{
|
|
|
|
|
AddLogicComponent<CardLogicComponent_GenerateCards>();
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 09:50:55 -05:00
|
|
|
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
2025-10-30 12:07:59 -04:00
|
|
|
{
|
|
|
|
|
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
|
|
|
|
|
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
|
|
|
|
mainGroup.AddCommand(new Cmd_Function(() =>
|
|
|
|
|
{
|
|
|
|
|
CardData holyWaterCardData = GetDerivativeCardData(0);
|
|
|
|
|
CardInstance.GenerateCardInstance(holyWaterCardData, user.team, "Hand");
|
|
|
|
|
}));
|
2025-11-08 09:50:55 -05:00
|
|
|
|
|
|
|
|
return new List<CommandBase> { mainGroup };
|
2025-10-30 12:07:59 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|