Example #1
0
    public override bool Get(Call_ c)
    {
        if (c.movecall == null)
        {
            return(false);
        }
        step_target data = test();

        data = ToDocard.test(data);
        if (data != null)
        {
            askHostDo(data, false);
            return(true);
        }
        return(false);
    }
Example #2
0
    public override step_target test(order o)
    {
        //使用卡牌的触发器
        //检测牌的状态
        if (o.usecard.state != cardWhere.hand)
        {
            return(null);
        }

        step_target s = new step_target(mini(), this, o);

        //检测触发器的范围 和使用次数;
        //是否拥有卡牌

        if (o.usecard.use)
        {
            return(o.usecard.use.test(s));
        }
        else
        {
            return(ToDocard.test(s));
        }
    }