18 lines
672 B
C#
18 lines
672 B
C#
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.Mods.Basic.Buffs;
|
|
using UnityEngine;
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
{
|
|
public class CardLogicComponent_Protect : CardLogicComponentBase
|
|
{
|
|
public void GenerateProtection(CharacterBase protector, CharacterBase target, int roundCount)
|
|
{
|
|
Protected protectedBuff = card.CreateCharacterBuff<Protected>();
|
|
protectedBuff.Apply(target, user, card);
|
|
Protecting protectingBuff = card.CreateCharacterBuff<Protecting>(target, roundCount, protectedBuff);
|
|
protectingBuff.Apply(protector, user, card);
|
|
}
|
|
}
|
|
} |