Add script for Child of Alara
parent
32a58e877e
commit
f930b4f7c4
|
@ -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));
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue