2026-04-01 12:23:27 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Continentis.MainGame.Card;
|
|
|
|
|
|
using Continentis.MainGame.Character;
|
|
|
|
|
|
using Continentis.MainGame.Commands;
|
2026-04-17 12:01:50 -04:00
|
|
|
|
using SLSUtilities.General;
|
2026-04-01 12:23:27 -04:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 祝福术:目标的下{Buff_Blessing_Stack}张卡牌获得1点通用增益影响,持续{Buff_Blessing_Duration}回合。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Bless : CardLogicBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
|
|
|
|
|
{
|
|
|
|
|
|
return ForEachTarget(targetList, target => Cmd.Parallel(
|
|
|
|
|
|
new Cmd_PlayAnimation(user.characterView, "Action"),
|
|
|
|
|
|
Cmd.Do(() =>
|
|
|
|
|
|
{
|
|
|
|
|
|
int stack = GetAttribute("Buff_Blessing_Stack");
|
|
|
|
|
|
int duration = GetAttribute("Buff_Blessing_Duration");
|
|
|
|
|
|
CreateCharacterBuff<Buffs.Blessing>(stack, duration).Apply(target, user, this);
|
|
|
|
|
|
})
|
|
|
|
|
|
));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|