added Machinate from Darksteel

This commit is contained in:
jendave
2011-08-06 04:17:10 +00:00
parent 41c243aa68
commit 4fa67ffefc
3 changed files with 39 additions and 4 deletions

View File

@@ -19221,21 +19221,21 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START *********** START **************************
//*************** START *********** START **************************
else if(cardName.equals("Index")) {
/*
* Look at the top five cards of your library, then put them back
* in any order.
*/
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = -3175286661458692699L;
private static final long serialVersionUID = -3175286661458692699L;
@Override
@Override
public void resolve() {
String player = card.getController();
AllZoneUtil.rearrangeTopOfLibrary(player, 5, false);
}
@Override
public boolean canPlayAI() {
//basically the same reason as Sensei's Diving Top
@@ -19247,6 +19247,35 @@ public class CardFactory implements NewConstants {
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Machinate")) {
/*
* Look at the top X cards of your library, where X is the number
* of artifacts you control. Put one of those cards into your hand
* and the rest on the bottom of your library in any order.
*/
final SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = 5559004016728325736L;
@Override
public void resolve() {
String player = card.getController();
CardList artifacts = AllZoneUtil.getPlayerCardsInPlay(player);
artifacts = artifacts.getType("Artifact");
AllZoneUtil.rearrangeTopOfLibrary(player, artifacts.size(), false);
}
@Override
public boolean canPlayAI() {
//basically the same reason as Sensei's Diving Top
return false;
}
};//spell
spell.setStackDescription(cardName+" - Rearrange the top X cards in your library in any order.");
card.clearSpellAbility();
card.addSpellAbility(spell);
}//*************** END ************ END **************************
// Cards with Cycling abilities
// -1 means keyword "Cycling" not found
if(hasKeyword(card, "Cycling") != -1) {