mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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
|
||||
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
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Identity Crisis
|
||||
2 W W B B
|
||||
Sorcery
|
||||
Exile all cards from target player<65>s hand and graveyard.
|
||||
|
||||
Lobotomy
|
||||
2 U B
|
||||
Sorcery
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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<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
|
||||
|
||||
@@ -704,22 +704,12 @@ private Card getCurrentCard(int ID)
|
||||
|
||||
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);
|
||||
library.remove(0);
|
||||
hand.add(c);
|
||||
|
||||
GameActionUtil.executeDrawCardTriggeredEffects(player);
|
||||
}
|
||||
//lose:
|
||||
else if (Constant.Runtime.Mill[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user