Files
Continentis/Assets/Mods/Basic/Cards/LogicComponents/CardLogicComponent_Protect.cs
SoulliesOfficial b68eeda9af
2025-10-30 04:22:21 -04:00

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