convert Do or Die to script

This commit is contained in:
slapshot5
2011-11-03 13:04:19 +00:00
parent 3d0e0f2e09
commit aa589393aa
2 changed files with 4 additions and 32 deletions

View File

@@ -1,11 +1,13 @@
Name:Do or Die Name:Do or Die
ManaCost:1 B ManaCost:1 B
Types:Sorcery Types:Sorcery
Text:Randomly destroy half of the creatures target player controls. They can't be regenerated. Text:Separate all creatures target player controls into two piles. Destroy all creatures in the pile of that player's choice. They can't be regenerated.
A:SP$ TwoPiles | Cost$ 1 B | ValidTgts$ Player | TgtPrompt$ Select target player | Separator$ You | ChosenPile$ DBDestroy | ValidCards$ Creature | SpellDescription$ Separate all creatures target player controls into two piles. Destroy all creatures in the pile of that player's choice. They can't be regenerated.
SVar:DBDestroy:DB$ Destroy | Defined$ Remembered | NoRegen$ True
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Rarity:None SVar:Rarity:None
SVar:Picture:http://resources.wizards.com/magic/cards/in/en-us/card23059.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/do_or_die.jpg
SetInfo:INV|Rare|http://magiccards.info/scans/en/in/102.jpg SetInfo:INV|Rare|http://magiccards.info/scans/en/in/102.jpg
Oracle:Separate all creatures target player controls into two piles. Destroy all creatures in the pile of that player's choice. They can't be regenerated. Oracle:Separate all creatures target player controls into two piles. Destroy all creatures in the pile of that player's choice. They can't be regenerated.
End End

View File

@@ -158,36 +158,6 @@ public class CardFactorySorceries {
spell.setBeforePayMana(runtime); spell.setBeforePayMana(runtime);
} // *************** END ************ END ************************** } // *************** END ************ END **************************
// *************** START *********** START **************************
else if (cardName.equals("Do or Die")) {
// TODO Please please please, someone fix this card
final Cost cost = new Cost("1 B", cardName, false);
final Target tgt = new Target(card, "Select a Player", "Player");
final SpellAbility spell = new Spell(card, cost, tgt) {
private static final long serialVersionUID = 8241241003478388362L;
@Override
public boolean canPlayAI() {
return 4 <= CardFactoryUtil.getHumanCreatureAI(card, true).size();
}
@Override
public void resolve() {
final CardList list = AllZoneUtil.getCreaturesInPlay(this.getTargetPlayer());
list.shuffle();
for (int i = 0; i < (list.size() / 2); i++) {
AllZone.getGameAction().destroyNoRegeneration(list.get(i));
}
}
}; // SpellAbility
spell.setChooseTargetAI(CardFactoryUtil.targetHumanAI());
card.setSVar("PlayMain1", "TRUE");
card.addSpellAbility(spell);
} // *************** END ************ END **************************
// *************** START *********** START ************************** // *************** START *********** START **************************
else if (cardName.equals("Insurrection")) { else if (cardName.equals("Insurrection")) {
/* /*