convert Ignite Memories to script

This commit is contained in:
slapshot5
2011-10-08 23:06:38 +00:00
parent c306ed3541
commit cda7968b19
2 changed files with 5 additions and 31 deletions

View File

@@ -223,36 +223,6 @@ public class CardFactory_Sorceries {
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Ignite Memories")) {
Target t = new Target(card, "Select target player", "Player");
Cost cost = new Cost("4 R", cardName, false);
SpellAbility spell = new Spell(card, cost, t) {
private static final long serialVersionUID = 143904782338241969L;
@Override
public boolean canPlayAI() {
return AllZone.getPhase().getPhase().equals(Constant.Phase.Main2);
}
@Override
public void resolve() {
Player player = getTargetPlayer();
CardList handChoices = player.getCardsIn(Zone.Hand);
if (handChoices.size() > 0) {
Card choice = CardUtil.getRandom(handChoices.toArray());
GuiUtils.getChoice("Random card", new CardList(choice));
player.addDamage(CardUtil.getConvertedManaCost(choice.getManaCost()), card);
}
}//resolve()
};
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if (cardName.equals("Mind's Desire")) {
final Spell PlayCreature = new Spell(card) {