Add script for All Is Dust
parent
74a07149a7
commit
9df564ae4c
|
@ -0,0 +1,32 @@
|
|||
def COLORED_PERMANENT = new MagicPermanentFilterImpl() {
|
||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
|
||||
return (target.hasColor(MagicColor.Black)
|
||||
|| target.hasColor(MagicColor.Red)
|
||||
|| target.hasColor(MagicColor.White)
|
||||
|| target.hasColor(MagicColor.Green)
|
||||
|| target.hasColor(MagicColor.Blue));
|
||||
}
|
||||
};
|
||||
[
|
||||
new MagicSpellCardEvent() {
|
||||
@Override
|
||||
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
|
||||
return new MagicEvent(
|
||||
cardOnStack,
|
||||
this,
|
||||
"Each player sacrifices all colored permanents."
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||
for (final MagicPlayer player : game.getPlayers()) {
|
||||
final Collection<MagicPermanent> targets =
|
||||
game.filterPermanents(player, COLORED_PERMANENT);
|
||||
for (final MagicPermanent target : targets) {
|
||||
game.doAction(new MagicSacrificeAction(target));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,10 @@
|
|||
name=All Is Dust
|
||||
url=http://magiccards.info/roe/en/1.html
|
||||
image=http://magiccards.info/scans/en/roe/1.jpg
|
||||
value=4.477
|
||||
rarity=M
|
||||
cost={7}
|
||||
type=Tribal,Sorcery
|
||||
subtype=Eldrazi
|
||||
timing=main
|
||||
requires_groovy_code
|
Loading…
Reference in New Issue