mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted March of Souls to script.
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
Name:March of Souls
|
||||
ManaCost:4 W
|
||||
Types:Sorcery
|
||||
Text:Destroy all creatures. They can't be regenerated. For each creature destroyed this way, its controller puts a 1/1 white Spirit creature token with flying onto the battlefield.
|
||||
Text:no text
|
||||
A:SP$ DestroyAll | Cost$ 4 W | ValidCards$ Creature.YouCtrl | RememberDestroyed$ True | NoRegen$ True | SubAbility$ SVar=DBTokenYou | SpellDescription$ Destroy all creatures. They can't be regenerated. For each creature destroyed this way, its controller puts a 1/1 white Spirit creature token with flying onto the battlefield.
|
||||
SVar:DBTokenYou:DB$Token | TokenAmount$ X | TokenName$ Spirit | TokenTypes$ Creature,Spirit | TokenOwner$ You | TokenColors$ White | TokenPower$ 1 | TokenToughness$ 1 | TokenKeywords$ Flying | SubAbility$ SVar=DBDestroyOpp
|
||||
SVar:DBDestroyOpp:DB$DestroyAll | ValidCards$ Creature.YouDontCtrl | RememberDestroyed$ True | NoRegen$ True | SubAbility$ SVar=DBTokenOpp
|
||||
SVar:DBTokenOpp:DB$Token | TokenAmount$ Y | TokenName$ Spirit | TokenTypes$ Creature,Spirit | TokenOwner$ Opponent | TokenColors$ White | TokenPower$ 1 | TokenToughness$ 1 | TokenKeywords$ Flying
|
||||
SVar:X:Remembered$Amount
|
||||
SVar:Y:Remembered$Amount
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/ps/en-us/card26277.jpg
|
||||
SetInfo:PLS|Rare|http://magiccards.info/scans/en/ps/10.jpg
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/march_of_souls.jpg
|
||||
End
|
||||
@@ -1242,35 +1242,6 @@ public class CardFactory_Sorceries {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("March of Souls")) {
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = -1468254925312413359L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
change(AllZone.Human_Battlefield, card.getController());
|
||||
change(AllZone.Computer_Battlefield, card.getController());
|
||||
}
|
||||
|
||||
public void change(PlayerZone play, Player owner) {
|
||||
Card[] c = play.getCards();
|
||||
for(int i = 0; i < c.length; i++) {
|
||||
if(c[i].isCreature() && !c[i].hasKeyword("Indestructible")) {
|
||||
AllZone.GameAction.destroyNoRegeneration(c[i]);
|
||||
CardFactoryUtil.makeToken("Spirit", "W 1 1 Spirit", c[i].getController(), "W", new String[] {
|
||||
"Creature", "Spirit"}, 1, 1, new String[] {"Flying"});
|
||||
}
|
||||
}
|
||||
}//change()
|
||||
};//SpellAbility
|
||||
|
||||
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
|
||||
card.clearFirstSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Martial Coup")) {
|
||||
|
||||
Reference in New Issue
Block a user