diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 84070a50eda..4f5a6936e57 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -18,6 +18,8 @@ forest.jpg http://resources.wizards.com/magic/cards/unh/en-us/card73946.jpg forest1.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=2748 forest2.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=587 forest3.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=586 +laquatuss_champion.jpg http://www.wizards.com/global/images/magic/general/laquatuss_champion.jpg +identity_crisis.jpg http://www.wizards.com/global/images/magic/general/identity_crisis.jpg lobotomy.jpg http://www.wizards.com/global/images/magic/general/lobotomy.jpg haunting_echoes.jpg http://www.wizards.com/global/images/magic/general/haunting_echoes.jpg hedron_crab.jpg http://www.wizards.com/global/images/magic/general/hedron_crab.jpg diff --git a/res/cards.txt b/res/cards.txt index 8d7a4eb8590..1fc74ffebc3 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,8 @@ +Identity Crisis +2 W W B B +Sorcery +Exile all cards from target player’s hand and graveyard. + Lobotomy 2 U B Sorcery diff --git a/res/main.properties b/res/main.properties index 34a8c955967..0b336482940 100644 --- a/res/main.properties +++ b/res/main.properties @@ -1,6 +1,6 @@ program/mail=mtgerror@yahoo.com program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26 -program/version=MTG Forge -- official beta: 09/11/25, SVN revision: 123 +program/version=MTG Forge -- official beta: 09/11/25, SVN revision: 124 tokens--file=AllTokens.txt diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index 76449df8f62..6ccb0827804 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -17578,6 +17578,53 @@ return land.size() > 1 && CardFactoryUtil.AI_isMainPhase(); spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell)); }//*************** END ************ END ************************** + + + //*************** START *********** START ************************** + if (cardName.equals("Identity Crisis")) + { + final SpellAbility spell = new Spell(card) + { + private static final long serialVersionUID = 42470566751344693L; + + public boolean canPlayAI() + { + String player = getTargetPlayer(); + PlayerZone lib = AllZone.getZone(Constant.Zone.Library, player); + CardList libList = new CardList(lib.getCards()); + return libList.size() > 0; + } + + public void resolve() + { + String player = getTargetPlayer(); + + PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, player); + PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, player); + PlayerZone exiled = AllZone.getZone(Constant.Zone.Removed_From_Play, player); + CardList handList = new CardList(hand.getCards()); + CardList graveList = new CardList(grave.getCards()); + + int max = handList.size() ; + for (int i=0;i