mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fix to previously posted mill code.
- Triadasoul added Identity Crisis.
This commit is contained in:
@@ -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
|
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
|
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
|
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
|
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
|
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
|
hedron_crab.jpg http://www.wizards.com/global/images/magic/general/hedron_crab.jpg
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
Identity Crisis
|
||||||
|
2 W W B B
|
||||||
|
Sorcery
|
||||||
|
Exile all cards from target player<65>s hand and graveyard.
|
||||||
|
|
||||||
Lobotomy
|
Lobotomy
|
||||||
2 U B
|
2 U B
|
||||||
Sorcery
|
Sorcery
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
program/mail=mtgerror@yahoo.com
|
program/mail=mtgerror@yahoo.com
|
||||||
program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26
|
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
|
tokens--file=AllTokens.txt
|
||||||
|
|
||||||
|
|||||||
@@ -17580,6 +17580,53 @@ return land.size() > 1 && CardFactoryUtil.AI_isMainPhase();
|
|||||||
}//*************** END ************ END **************************
|
}//*************** 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<max;i++)
|
||||||
|
{
|
||||||
|
Card c = handList.get(i);
|
||||||
|
hand.remove(c);
|
||||||
|
exiled.add(c);
|
||||||
|
}
|
||||||
|
int grv = graveList.size() ;
|
||||||
|
for (int i=0;i<grv;i++)
|
||||||
|
{
|
||||||
|
Card c = graveList.get(i);
|
||||||
|
grave.remove(c);
|
||||||
|
exiled.add(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};//SpellAbility
|
||||||
|
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||||
|
card.clearSpellAbility();
|
||||||
|
card.addSpellAbility(spell);
|
||||||
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
// Cards with Cycling abilities
|
// Cards with Cycling abilities
|
||||||
// -1 means keyword "Cycling" not found
|
// -1 means keyword "Cycling" not found
|
||||||
if (hasKeyword(card, "Cycling") != -1)
|
if (hasKeyword(card, "Cycling") != -1)
|
||||||
|
|||||||
@@ -704,16 +704,6 @@ private Card getCurrentCard(int ID)
|
|||||||
|
|
||||||
if(library.size() != 0)
|
if(library.size() != 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
Card c = library.get(0);
|
|
||||||
library.remove(0);
|
|
||||||
hand.add(c);
|
|
||||||
|
|
||||||
GameActionUtil.executeDrawCardTriggeredEffects(player);
|
|
||||||
}
|
|
||||||
if(library.size() != 0)
|
|
||||||
{
|
|
||||||
|
|
||||||
Card c = library.get(0);
|
Card c = library.get(0);
|
||||||
library.remove(0);
|
library.remove(0);
|
||||||
hand.add(c);
|
hand.add(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user