Exemplo n.º 1
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;

        AM.AddActionOnBottom(new FoldHandCardAction(target));
        AM.AddActionOnBottom(new DrawCardAction(2));
    }
Exemplo n.º 2
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;

        AM.AddActionOnBottom(new AddBuffAction(target, new Buff_10000(target.GetComponent <BattleUnitContainer>().BattleUnit, 1)));
        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, PlayerUnit.Attack));
    }
Exemplo n.º 3
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;

        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, PlayerUnit.Attack));
        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, PlayerUnit.Attack));
    }
Exemplo n.º 4
0
    public override void Effect()
    {
        AM.AddActionOnBottom(new DrawCardAction(1));
        ChooseTargetAction action = new ChooseCardTargetAction();

        AM.AddActionOnBottom(action);
        AM.AddActionOnBottom(new MoveCardToDrawPile(action, 0));
    }
Exemplo n.º 5
0
 public override void Effect()
 {
     AM.AddActionOnBottom(new DrawCardAction(1));
     CallComboEffect(delegate()
     {
         AM.AddActionOnBottom(new DrawCardAction(1));
     });
     // if (CardManager._instance.UsedCardCount >= 2)
     // {
     //     AM.AddActionOnBottom(new DrawCardAction(1));
     // }
 }
Exemplo n.º 6
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;

        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, PlayerUnit.Attack));
        CallComboEffect(delegate()
        {
            AM.AddActionOnBottom(new DrawCardAction(1));
        });
        // if (CardManager._instance.UsedCardCount >= 2)
        // {
        //     AM.AddActionOnBottom(new DrawCardAction(1));
        // }
    }
Exemplo n.º 7
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;

        CallComboEffect(delegate()
        {
            AM.AddActionOnBottom(new AddBuffAction(target, new Buff_10000(target.GetComponent <BattleUnitContainer>().BattleUnit, 1)));
        });
        // if (CardManager._instance.UsedCardCount >= 2)
        // {
        //     AM.AddActionOnBottom(new AddBuffAction(target, new Buff_10000(target.GetComponent<BattleUnitContainer>().battleUnit, 1)));
        // }
        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, PlayerUnit.Attack));
    }
Exemplo n.º 8
0
    public override void Effect()
    {
        GameObject target = this.myFSM.GetFsmGameObject("Target").Value;
        int        count  = 0;

        foreach (CardScript item in CM.UsedHistory)
        {
            if (item.ID == Param[0])
            {
                count++;
            }
        }
        int attack = Mathf.CeilToInt((1 + count * proveRate) * PlayerUnit.Attack);

        AM.AddActionOnBottom(new AttackAction(BM.PlayerGO, target, attack));
    }
Exemplo n.º 9
0
 public override void Effect()
 {
     AM.AddActionOnBottom(new GenerateCardAction(Param[0], PileName.HandPile));
 }
Exemplo n.º 10
0
    public override void Effect()
    {
        GameObject target = BM.PlayerGO;

        AM.AddActionOnBottom(new GetBarrierAction(target, 10));
    }