New Card Scripts (Now over 5,000 cards!)

master
ShawnieBoy 2013-12-17 00:25:45 +00:00
parent 5bbf7dede7
commit 6ebb8cd6ec
24 changed files with 665 additions and 0 deletions

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(2,2);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Flying);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Bird);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.White.getMask()|MagicColor.Blue.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{W}{W}{U}{U}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{W}{U}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 2/2 white and blue Bird artifact creature with flying until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Azorius Keyrune
url=http://magiccards.info/c13/en/236.html
image=http://mtgimage.com/card/azorius%20keyrune.jpg
value=3.049
rarity=U
type=Artifact
cost={3}
ability=tap add mana {W} or {U}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,18 @@
[
new MagicWhenOtherDiesTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent died) {
return (permanent.getEnchantedCreature()==died) ?
new MagicEvent(
permanent,
this,
"PN draws two cards"
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),2));
}
}
]

View File

@ -0,0 +1,11 @@
name=Bequeathal
url=http://magiccards.info/ex/en/106.html
image=http://mtgimage.com/card/bequeathal.jpg
value=4.026
rarity=C
type=Enchantment
subtype=Aura
cost={G}
enchant=pump,creature
timing=enchantment
requires_groovy_code

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(1,1);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.DoubleStrike);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Soldier);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Red.getMask()|MagicColor.White.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{R}{R}{W}{W}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{R}{W}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 1/1 red and white Soldier artifact creature with double strike until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Boros Keyrune
url=http://magiccards.info/gtc/en/227.html
image=http://mtgimage.com/card/boros%20keyrune.jpg
value=2.915
rarity=U
type=Artifact
cost={3}
ability=tap add mana {R} or {W}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(2,2);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Unblockable);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Horror);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Blue.getMask()|MagicColor.Black.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{U}{U}{B}{B}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{U}{B}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 2/2 blue and black Horror artifact creature until end of turn and is unblockable this turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Dimir Keyrune
url=http://magiccards.info/gtc/en/228.html
image=http://mtgimage.com/card/dimir%20keyrune.jpg
value=3.24
rarity=U
type=Artifact
cost={3}
ability=tap add mana {U} or {B}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,11 @@
name=False Demise
url=http://magiccards.info/mm/en/80.html
image=http://mtgimage.com/card/false%20demise.jpg
value=4.181
rarity=U
type=Enchantment
subtype=Aura
cost={2}{U}
enchant=gain control,creature
timing=enchantment
requires_groovy_code Unhallowed Pact

View File

@ -0,0 +1,12 @@
name=Fool's Demise
url=http://magiccards.info/ts/en/64.html
image=http://mtgimage.com/card/fool's%20demise.jpg
value=4.255
rarity=U
type=Enchantment
subtype=Aura
cost={4}{U}
enchant=gain control,creature
ability=dies effect Return SN from the graveyard to its owner's hand.
timing=enchantment
requires_groovy_code Unhallowed Pact

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(2,2);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Deathtouch);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Insect);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Black.getMask()|MagicColor.Green.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{B}{B}{G}{G}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{B}{G}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 2/2 black and green Insect artifact creature with deathtouch until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Golgari Keyrune
url=http://magiccards.info/rtr/en/229.html
image=http://mtgimage.com/card/golgari%20keyrune.jpg
value=3.278
rarity=U
type=Artifact
cost={3}
ability=tap add mana {B} or {G}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(3,2);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Trample);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Beast);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Red.getMask()|MagicColor.Green.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{R}{R}{G}{G}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{R}{G}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 2/2 red and green Beast artifact creature with trample until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Gruul Keyrune
url=http://magiccards.info/gtc/en/230.html
image=http://mtgimage.com/card/gruul%20keyrune.jpg
value=3.085
rarity=U
type=Artifact
cost={3}
ability=tap add mana {R} or {G}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(1,4);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Lifelink);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Thrull);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.White.getMask()|MagicColor.Black.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{W}{W}{B}{B}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{W}{B}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 1/4 white and black Thrull artifact creature with lifelink until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Orzhov Keyrune
url=http://magiccards.info/gtc/en/233.html
image=http://mtgimage.com/card/orzhov%20keyrune.jpg
value=2.965
rarity=U
type=Artifact
cost={3}
ability=tap add mana {W} or {B}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(3,1);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.FirstStrike);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Devil);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Black.getMask()|MagicColor.Red.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{B}{B}{R}{R}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{B}{R}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 3/1 black and red Devil artifact creature with first strike until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Rakdos Keyrune
url=http://magiccards.info/rtr/en/232.html
image=http://mtgimage.com/card/rakdos%20keyrune.jpg
value=3.364
rarity=U
type=Artifact
cost={3}
ability=tap add mana {B} or {R}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,51 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(3,3);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Wolf);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Green.getMask()|MagicColor.White.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{G}{G}{W}{W}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{G}{W}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 3/3 green and white Wolf artifact creature until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Selesnya Keyrune
url=http://magiccards.info/rtr/en/233.html
image=http://mtgimage.com/card/selesnya%20keyrune.jpg
value=3.318
rarity=U
type=Artifact
cost={3}
ability=tap add mana {G} or {W}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,12 @@
name=Shade's Form
url=http://magiccards.info/tr/en/81.html
image=http://mtgimage.com/card/shade's%20form.jpg
value=4.327
rarity=C
type=Enchantment
subtype=Aura
cost={1}{B}{B}
timing=enchantment
enchant=pump,pos creature
given_ability=pay {B}:SN gets +1/+1 until end of turn.
requires_groovy_code Unhallowed Pact

View File

@ -0,0 +1,56 @@
def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.set(2,3);
}
};
def AB = new MagicStatic(MagicLayer.Ability, MagicStatic.UntilEOT) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Hexproof);
}
};
def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
flags.add(MagicSubType.Crab);
}
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
def C = new MagicStatic(MagicLayer.Color, MagicStatic.UntilEOT) {
@Override
public int getColorFlags(final MagicPermanent permanent,final int flags) {
return MagicColor.Green.getMask()|MagicColor.Blue.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{G}{G}{U}{U}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{G}{U}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN becomes a 2/3 green and blue Crab artifact creature with hexproof until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,AB,ST,C));
}
}
]

View File

@ -0,0 +1,10 @@
name=Simic Keyrune
url=http://magiccards.info/gtc/en/237.html
image=http://mtgimage.com/card/simic%20keyrune.jpg
value=3.081
rarity=U
type=Artifact
cost={3}
ability=tap add mana {G} or {U}
timing=artifact
requires_groovy_code

View File

@ -0,0 +1,12 @@
name=Squee's Embrace
url=http://magiccards.info/ap/en/122.html
image=http://mtgimage.com/card/squee's%20embrace.jpg
value=4.23
rarity=C
type=Enchantment
subtype=Aura
cost={R}{W}
enchant=pump,pos creature
given_pt=+2/+2
timing=enchantment
requires_groovy_code Wind Zendikon