Exemplo n.º 1
0
    private void RunCardEvocationSpecialEffects(AbstractCard card, AbstractBattleUnit target)
    {
        var specialEffect = card.GetSpecialEffect_Nullable(target);

        if (specialEffect != null)
        {
            IsCurrentActionFinished = false;

            specialEffect.Afterward_SetByActionManager = () =>
            {
                IsCurrentActionFinished = true;
            };
            specialEffect.BeginSpecialEffect();
        }
        else
        {
            IsCurrentActionFinished = true;
        }
    }