init
This commit is contained in:
20
Assets/TcgEngine/Scripts/Effects/EffectResetStat.cs
Normal file
20
Assets/TcgEngine/Scripts/Effects/EffectResetStat.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TcgEngine.Gameplay;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// Effect to reset all stats to their original values
|
||||
/// </summary>
|
||||
|
||||
[CreateAssetMenu(fileName = "effect", menuName = "TcgEngine/Effect/ResetStat", order = 10)]
|
||||
public class EffectResetStat : EffectData
|
||||
{
|
||||
public override void DoEffect(GameLogic logic, AbilityData ability, Card caster, Card target)
|
||||
{
|
||||
target.SetCard(target.CardData, target.VariantData);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user