Add script for Child of Alara

master
ember hauler 2013-10-16 08:31:22 +00:00
parent 32a58e877e
commit f930b4f7c4
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,21 @@
[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
this,
"Destroy all nonland permanents. They can't be regenerated."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_NONLAND_PERMANENT);
for (final MagicPermanent target : targets) {
game.doAction(MagicChangeStateAction.Set(target,MagicPermanentState.CannotBeRegenerated));
}
game.doAction(new MagicDestroyAction(targets));
}
}
]

View File

@ -0,0 +1,12 @@
name=Child of Alara
url=http://magiccards.info/con/en/101.html
image=http://magiccards.info/scans/en/cfx/101.jpg
value=2.500
rarity=M
type=Legendary,Creature
subtype=Avatar
cost={W}{U}{B}{R}{G}
pt=6/6
timing=main
ability=trample
requires_groovy_code