From 853ee2e6be21f662df216177b016f4899ce71267 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 09:11:00 +0000 Subject: [PATCH] add Architects of Will (from Alara Reborn) --- .gitattributes | 1 + res/cardsfolder/architects_of_will.txt | 10 +++++++++ src/forge/CardFactory_Creatures.java | 30 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 res/cardsfolder/architects_of_will.txt diff --git a/.gitattributes b/.gitattributes index f06c363c5cc..4b5cc22d6c8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/res/cardsfolder/architects_of_will.txt b/res/cardsfolder/architects_of_will.txt new file mode 100644 index 00000000000..9b3a089a1d9 --- /dev/null +++ b/res/cardsfolder/architects_of_will.txt @@ -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 diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index fc93f3d56b9..0eb286fa5d1 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -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