Reminisce

Gando complained about me using four Timetwister -s, so I decided to spend five minutes on an unrestricted card that works well enough in that deck:
- Code: Select all
//*************** START *********** START **************************
if(cardName.equals("Reminisce"))
{
final SpellAbility spell = new Spell(card)
{
private static final long serialVersionUID = 505983020365091226L;
public void resolve()
{
String player = getTargetPlayer();
// Move graveyard into library
PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, player);
PlayerZone library = AllZone.getZone(Constant.Zone.Library, player);
Card[] g = grave.getCards();
for (int i = 0; i < g.length; i++)
{
grave.remove(g[i]);
library.add(g[i],0);
}
// Shuffle library
AllZone.GameAction.shuffle(player);;
}
public boolean canPlayAI()//97% of the time shuffling your grave into your library is a good thing
{
setTargetPlayer(Constant.Player.Computer);
return true;
}
};//SpellAbility
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
card.clearSpellAbility();
card.addSpellAbility(spell);
}//*************** END ************ END **************************