Exemplo n.º 1
0
    private void SwapStats(CardVisual target)
    {
        int stat1 = target.GetStatValue(sourceStat, true);
        int stat2 = target.GetStatValue(destinationStat, true);

        StatAdjustment first  = new StatAdjustment(sourceStat, stat2, false, true, source);
        StatAdjustment second = new StatAdjustment(destinationStat, stat1, false, true, source);

        //adjustments.Add(first);
        //adjustments.Add(second);
        source.RPCCreateStatAdjustment(PhotonTargets.All, first, parentAbility.abilityName);
        source.RPCCreateStatAdjustment(PhotonTargets.All, second, parentAbility.abilityName);

        ApplyStatAdjustment(target);
    }