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

18 lines
692 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-11-15 12:17:34 -05:00
Protected protectedBuff = mainLogic.CreateCharacterBuff<Protected>();
protectedBuff.Apply(target, user, mainLogic);
Protecting protectingBuff = mainLogic.CreateCharacterBuff<Protecting>(target, roundCount, protectedBuff);
protectingBuff.Apply(protector, user, mainLogic);
2025-10-30 04:21:28 -04:00
}
}
}