Add script for Crypt Sliver
parent
d1a74f8f31
commit
3cb4d5d7ad
|
@ -0,0 +1,51 @@
|
|||
|
||||
def CryptRegen = new MagicPermanentActivation(
|
||||
new MagicActivationHints(MagicTiming.Pump),
|
||||
"Crypt"
|
||||
) {
|
||||
|
||||
@Override
|
||||
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
||||
return [
|
||||
new MagicTapEvent(source)
|
||||
];
|
||||
}
|
||||
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
|
||||
final MagicTargetFilter<MagicPermanent> targetFilter = new MagicOtherPermanentTargetFilter(
|
||||
MagicTargetFilter.TARGET_SLIVER, source);
|
||||
final MagicTargetChoice targetChoice = new MagicTargetChoice(
|
||||
targetFilter, true, MagicTargetHint.Positive,
|
||||
"target Sliver");
|
||||
return new MagicEvent(
|
||||
source,
|
||||
targetChoice,
|
||||
MagicRegenerateTargetPicker.getInstance(),
|
||||
this,
|
||||
"Regenerate target Sliver\$."
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||
event.processTargetPermanent(game,
|
||||
new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent creature) {
|
||||
game.doAction(new MagicRegenerateAction(creature));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
[
|
||||
new MagicStatic(
|
||||
MagicLayer.Ability,
|
||||
MagicTargetFilter.TARGET_SLIVER
|
||||
) {
|
||||
@Override
|
||||
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
|
||||
permanent.addAbility(CryptRegen);
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,12 @@
|
|||
name=Crypt Sliver
|
||||
url=http://magiccards.info/le/en/63.html
|
||||
image=http://magiccards.info/scans/en/le/63.jpg
|
||||
value=4.186
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Sliver
|
||||
cost={1}{B}
|
||||
pt=1/1
|
||||
static=all
|
||||
timing=main
|
||||
requires_groovy_code
|
Loading…
Reference in New Issue