Add script for Armor Sliver

master
Jericho Pumpkin 2013-09-20 16:32:03 +00:00
parent 900304c4dd
commit 83e927ec7d
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,37 @@
def ArmorPump = new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Armor"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{2}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gets +0/+1 until end of turn. "
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPermanent permanent = event.getPermanent();
game.doAction(new MagicChangeTurnPTAction(permanent,0,1));
}
};
[
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_SLIVER
) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
permanent.addAbility(ArmorPump);
}
}
]

View File

@ -0,0 +1,12 @@
name=Armor Sliver
url=http://magiccards.info/pds/en/16.html
image=http://magiccards.info/scans/en/pds/16.jpg
value=2.432
rarity=U
type=Creature
subtype=Sliver
cost={2}{W}
pt=2/2
timing=main
static=all
requires_groovy_code