Add script for Darksteel Brute

master
hong yie 2013-09-24 10:11:05 +00:00
parent f1e2616bed
commit c3b05d0c14
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,41 @@
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 ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
@Override
public int getTypeFlags(final MagicPermanent permanent,final int flags) {
return flags|MagicType.Creature.getMask();
}
};
[
new MagicPermanentActivation(
[
new MagicArtificialCondition(
MagicConditionFactory.ManaCost("{3}")
)
],
new MagicActivationHints(MagicTiming.Animate),
"Animate"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{3}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Until end of turn, SN becomes a 2/2 artifact creature."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicBecomesCreatureAction(event.getPermanent(),PT,ST));
}
}
]

View File

@ -0,0 +1,10 @@
name=Darksteel Brute
url=http://magiccards.info/ds/en/108.html
image=http://magiccards.info/scans/en/ds/108.jpg
value=3.088
rarity=U
type=Artifact
cost={2}
ability=indestructible
timing=artifact
requires_groovy_code