mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
convert Ignite Memories to script
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
Name:Ignite Memories
|
||||
ManaCost:4 R
|
||||
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
|
||||
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:Picture:http://www.wizards.com/global/images/magic/general/ignite_memories.jpg
|
||||
SetInfo:TSP|Uncommon|http://magiccards.info/scans/en/ts/164.jpg
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user