예제 #1
0
    } // End of Enter Zone

    private void ActivateTargetedAbilities(CardVisual card, List <EffectOnTarget> effects)
    {
        if (!card.photonView.isMine)
        {
            return;
        }

        if (effects.Count < 1)
        {
            return;
        }

        combatManager.isChoosingTarget = true;
        combatManager.ActivateSpellTargeting();

        for (int i = 0; i < effects.Count; i++)
        {
            //effects[i].source = card; //TODO: affecting the raw data. Don't like this.
            //combatManager.sourceOfTargetingEffect = card;


            combatManager.confirmedTargetCallback += effects[i].ProcessEffect;
        }
    }