Files
Continentis/Assets/Mods/Basic/Cards/Scripts/General/Guard.cs
2025-10-25 07:49:39 -04:00

30 lines
1.2 KiB
C#

using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using Continentis.Mods.Basic.Buffs;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
public class Guard : CardLogicBase
{
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_ParamFunction<CharacterBase>((target) =>
{
Debug.Log(user.GetType().FullName);
Debug.Log(typeof(CharacterBase).FullName);
Protected protectedBuff = CreateCharacterBuff<Protected>(user);
protectedBuff.Apply(target, user, this);
Protecting protectingBuff = CreateCharacterBuff<Protecting>(target, GetAttribute("BuffCount_Protecting"), protectedBuff);
protectingBuff.Apply(user, user, this);
})); //对使用者施加沉重状态
return mainGroup;
}
}
}