Ejemplo n.º 1
0
    public void Cost(IDuel duel, Card card, LauchEffect effect)
    {
        Player player = card.ownerPlayer;

        duel.ReduceLP(player.LP / 2, player, ComVal.reason_Cost, card, effect);
        duel.FinishHandle();
    }
Ejemplo n.º 2
0
    public void Operation(IDuel duel, Card card, LauchEffect effect, Group group = null)
    {
        GroupCardSelectBack d = delegate(Group val)
        {
            card.EffectDataGroup = val;

            normalDele d1 = delegate
            {
                Group      result = new Group();
                normalDele d2     = delegate
                {
                    List <Card> list     = result.ToList();
                    int         reduceLP = 0;
                    foreach (var item in list)
                    {
                        reduceLP += item.GetCurAfk();
                    }
                    duel.ReduceLP(reduceLP, card.controller, ComVal.reason_Effect, card, effect);
                    duel.FinishHandle();
                };
                duel.AddDelegate(d2, true);
                Group target = card.EffectDataGroup.GetFitlerGroup(Fiter1);
                result = duel.SendToGraveyard(ComVal.Area_Monster, target, card, ComVal.reason_EffectDestroy, effect);
            };
            duel.AddDelayAction(d1, ComVal.resetEvent_LeaveEndPhase, 0);
            duel.FinishHandle();
        };

        duel.SpeicalSummon(ComVal.Area_Graveyard, group, card.controller, card, ComVal.reason_Effect, effect, ComVal.CardPutType_UpRightFront, d);
    }
Ejemplo n.º 3
0
 private void Cost(IDuel duel, Card card, LauchEffect effect)
 {
     duel.ReduceLP(1000, card.controller, ComVal.reason_Cost, card, effect);
     duel.FinishHandle();
 }