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 = mainLogic.CreateCharacterBuff(); protectedBuff.Apply(target, user, mainLogic); Protecting protectingBuff = mainLogic.CreateCharacterBuff(target, roundCount, protectedBuff); protectingBuff.Apply(protector, user, mainLogic); } } }