Exemplo n.º 1
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group g = duel.GetIncludeNameCardFromArea("", false, card.controller, 0, ComVal.Area_MainDeck, Fiter);

        duel.AddFinishHandle();
        duel.AddCardToHandFromMainDeck(g.GetCard(0), card.controller, card, effect);
    }
Exemplo n.º 2
0
    public void Operation(IDuel duel, Card theCard, LauchEffect effect, Group group = null)
    {
        Card targetCard = group.GetCard(0);

        duel.AddFinishHandle();
        duel.AddCardToHandFromMainDeck(targetCard, effect.ownerCard.ownerPlayer, effect.ownerCard, effect);
    }
Exemplo n.º 3
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group a = duel.GetIncludeNameCardFromArea("英雄", false, effect.ownerCard.ownerPlayer, ComVal.cardType_Monster, ComVal.Area_MainDeck);
        GroupCardSelectBack CallBack = delegate(Group theGroup)
        {
            Card targetCard = theGroup.GetCard(0);
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(targetCard, effect.ownerCard.ownerPlayer, effect.ownerCard, effect);
        };

        duel.SelectCardFromGroup(a, CallBack, 1, card.controller);
    }
Exemplo n.º 4
0
    private void Operation1(IDuel duel, Card card, LauchEffect effect, Group target = null)
    {
        Group g = duel.GetIncludeNameCardFromArea("", false, card.controller, ComVal.cardType_Monster, ComVal.Area_MainDeck, Fiter);

        GroupCardSelectBack callBack = delegate(Group val)
        {
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(val.GetCard(0), card.controller, card, effect);
        };

        duel.SelectCardFromGroup(g, callBack, 1, card.controller);
    }
Exemplo n.º 5
0
    public void Operation1(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group theGroup = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_Change, false, effect.ownerCard.ownerPlayer, ComVal.CardType_Spell_Quick, ComVal.Area_MainDeck);
        GroupCardSelectBack CallBack = delegate(Group targetGroup)
        {
            Card targetCard = targetGroup.GetCard(0);
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(targetCard, effect.ownerCard.ownerPlayer, effect.ownerCard, effect);
        };

        duel.SelectCardFromGroup(theGroup, CallBack, 1, card.controller);
    }
Exemplo n.º 6
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group g = duel.GetIncludeNameCardFromArea("", false, card.controller, ComVal.CardType_Spell_Field, ComVal.Area_MainDeck);

        GroupCardSelectBack callBack = delegate(Group val)
        {
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(val.GetCard(0), card.controller, card, effect);
        };

        duel.SelectCardFromGroup(g, callBack, 1, card.controller);
    }
Exemplo n.º 7
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group g = duel.GetIncludeNameCardFromArea("24094653", false, card.ownerPlayer, ComVal.cardType_Spell, ComVal.Area_MainDeck);
        GroupCardSelectBack callBack = delegate(Group theGroup)
        {
            Card c = theGroup.GetCard(0);
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(c, card.ownerPlayer, card, effect);
        };

        duel.SelectCardFromGroup(g, callBack, 1, card.controller);
    }
Exemplo n.º 8
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        LimitPlayer(duel, card);

        Group g = card.controller.group_MainDeck.GetFirstAmountCard(3);

        if (g.GroupNum == 0)
        {
            duel.FinishHandle();
            return;
        }
        GroupCardSelectBack callBack = delegate(Group val)
        {
            duel.AddFinishHandle();
            duel.AddCardToHandFromMainDeck(val.GetCard(0), card.controller, card, effect);
        };

        duel.SelectCardFromGroup(g, callBack, 1, card.controller);
    }
Exemplo n.º 9
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        Group g = duel.GetIncludeNameCardFromArea(ComStr.KeyWord_Lightsworn, false, card.controller, ComVal.cardType_Monster, ComVal.Area_MainDeck, Filter);

        if (g.GroupNum == 0)
        {
            duel.FinishHandle();
            return;
        }
        else
        {
            GroupCardSelectBack callBack = delegate(Group val)
            {
                duel.AddFinishHandle();
                duel.AddCardToHandFromMainDeck(val.GetFirstCard(), card.controller, card, effect);
            };
            duel.SelectCardFromGroup(g, callBack, 1, card.controller);
        }
    }