Files
Continentis/Assets/Mods/Basic/Cards/Scripts/ObsoleteGeneral/Guard.cs

28 lines
1.0 KiB
C#
Raw Normal View History

2025-10-25 07:49:39 -04:00
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
{
2025-11-08 09:50:55 -05:00
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
2025-10-25 07:49:39 -04:00
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_ParamFunction<CharacterBase>((target) =>
{
2025-10-30 12:07:59 -04:00
Protected protectedBuff = CreateCharacterBuff<Protected>();
2025-10-25 07:49:39 -04:00
protectedBuff.Apply(target, user, this);
Protecting protectingBuff = CreateCharacterBuff<Protecting>(target, GetAttribute("BuffCount_Protecting"), protectedBuff);
protectingBuff.Apply(user, user, this);
2025-10-30 04:21:28 -04:00
}));
2025-10-25 07:49:39 -04:00
2025-11-08 09:50:55 -05:00
return new List<CommandBase> { mainGroup };
2025-10-25 07:49:39 -04:00
}
}
}