Add script for Armor Sliver
parent
900304c4dd
commit
83e927ec7d
|
@ -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);
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue