除了充盈都做完了
This commit is contained in:
39
Assets/Mods/Basic/Cards/Scripts/Knight/EstablishFormation.cs
Normal file
39
Assets/Mods/Basic/Cards/Scripts/Knight/EstablishFormation.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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 EstablishFormation : CardLogicBase
|
||||
{
|
||||
protected override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Defense>();
|
||||
}
|
||||
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
target.AddBlock(GetAttribute("Block"));
|
||||
int stack = GetAttribute("BuffStack_EstablishFormation");
|
||||
int count = GetAttribute("BuffCount_EstablishFormation");
|
||||
CreateCharacterBuff<Buffs.EstablishFormation>(stack, count).Apply(target, user, this);
|
||||
}));
|
||||
|
||||
return mainGroup;
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Defense>().SetBlock_Fortitude();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user