Files
Continentis/Assets/Mods/Basic/Cards/LogicComponents/CardLogicComponent_Protect.cs

18 lines
672 B
C#
Raw Normal View History

2025-10-30 04:22:21 -04:00
using Continentis.MainGame.Card;
2025-10-30 04:21:28 -04:00
using Continentis.MainGame.Character;
using Continentis.Mods.Basic.Buffs;
using UnityEngine;
2025-10-30 04:22:21 -04:00
namespace Continentis.Mods.Basic.Cards
2025-10-30 04:21:28 -04:00
{
public class CardLogicComponent_Protect : CardLogicComponentBase
{
public void GenerateProtection(CharacterBase protector, CharacterBase target, int roundCount)
{
2025-10-30 12:07:59 -04:00
Protected protectedBuff = card.CreateCharacterBuff<Protected>();
2025-10-30 04:21:28 -04:00
protectedBuff.Apply(target, user, card);
Protecting protectingBuff = card.CreateCharacterBuff<Protecting>(target, roundCount, protectedBuff);
protectingBuff.Apply(protector, user, card);
}
}
}