add Architects of Will (from Alara Reborn)

This commit is contained in:
jendave
2011-08-06 09:11:00 +00:00
parent ebfef59ee3
commit 853ee2e6be
3 changed files with 41 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -202,6 +202,7 @@ res/cardsfolder/arcbound_stinger.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_worker.txt -text svneol=native#text/plain
res/cardsfolder/archaeological_dig.txt -text svneol=native#text/plain
res/cardsfolder/archangel.txt -text svneol=native#text/plain
res/cardsfolder/architects_of_will.txt -text svneol=native#text/plain
res/cardsfolder/archivist.txt -text svneol=native#text/plain
res/cardsfolder/archon_of_justice.txt -text svneol=native#text/plain
res/cardsfolder/archon_of_redemption.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Architects of Will
ManaCost:2 U B
Types:Artifact Creature Human Wizard
Text:When Architects of Will enters the battlefield, look at the top three cards of target player's library, then put them back in any order.
PT:3/3
K:Cycling:UB
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/architects_of_will.jpg
End

View File

@@ -20440,6 +20440,36 @@ public class CardFactory_Creatures {
ability.setBeforePayMana(CardFactoryUtil.input_targetPermanent(ability));
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Architects of Will")) {
/*
* When Architects of Will enters the battlefield, look at the
* top three cards of target player's library, then put them
* back in any order.
*/
final SpellAbility ability = new Ability(card, "0") {
@Override
public void resolve() {
AllZoneUtil.rearrangeTopOfLibrary(getTargetPlayer(), 3, false);
}//resolve()
};//SpellAbility
Command intoPlay = new Command() {
private static final long serialVersionUID = 3539746365351917811L;
public void execute() {
if(card.getController().equals(Constant.Player.Human)) {
AllZone.InputControl.setInput(CardFactoryUtil.input_targetPlayer(ability));
ButtonUtil.disableAll();
}
else { //Computer
//not implemented for computer
}//else
}
};
ability.setStackDescription(cardName + " - rearrange top 3 cards of target player's library.");
card.addComesIntoPlayCommand(intoPlay);
}//*************** END ************ END **************************
// Cards with Cycling abilities
// -1 means keyword "Cycling" not found