33 lines
995 B
C#
33 lines
995 B
C#
|
|
|
|
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.MainGame.Commands;
|
|
using SLSFramework.General;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Continentis.Mods.Basic.Cards.Cleric
|
|
{
|
|
public class DivineProtection : CardLogicBase
|
|
{
|
|
protected override List<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 =>
|
|
{
|
|
user.AddBlock(GetAttribute("Block"));
|
|
}));
|
|
|
|
mainGroup.AddCommand(new Cmd_Function(() =>
|
|
{
|
|
this.SetAttribute("Block", this.GetAttribute("Block") + this.GetAttribute("BlockStack"));
|
|
}));
|
|
|
|
return new List<CommandBase> { mainGroup };
|
|
}
|
|
}
|
|
}
|