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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); } }