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

@@ -1,8 +1,12 @@
Name:Ignite Memories Name:Ignite Memories
ManaCost:4 R ManaCost:4 R
Types:Sorcery Types:Sorcery
Text:Target player reveals a card at random from his or her hand. Ignite Memories deals damage to that player equal to that card's converted mana cost. Text:no text
K:Storm K:Storm
A:SP$ Reveal | Cost$ 4 R | Random$ True | RememberRevealed$ True | ValidTgts$ Player | TgtPrompt$ Select target player | SubAbility$ DBDamage | SpellDescription$ Target player reveals a card at random from his or her hand. CARDNAME deals damage to that player equal to that card's converted mana cost.
SVar:DBDamage:DB$ DealDamage | NumDmg$ X | Defined$ Targeted | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$CardManaCost
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/ignite_memories.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/ignite_memories.jpg
SetInfo:TSP|Uncommon|http://magiccards.info/scans/en/ts/164.jpg SetInfo:TSP|Uncommon|http://magiccards.info/scans/en/ts/164.jpg

View File

@@ -223,36 +223,6 @@ public class CardFactory_Sorceries {
}//*************** END ************ END ************************** }//*************** 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 ************************** //*************** START *********** START **************************
else if (cardName.equals("Mind's Desire")) { else if (cardName.equals("Mind's Desire")) {
final Spell PlayCreature = new Spell(card) { final Spell PlayCreature = new Spell(card) {