Files
Continentis/Assets/Mods/Basic/Cards/LogicComponents/CardLogicComponent_Protect.cs
SoulliesOfficial 5fe665d0ce Card爆改!
2025-11-15 12:17:34 -05:00

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