Add script for Dawnstrider

master
hong yie 2013-12-30 06:10:23 +00:00
parent 282133ffce
commit d948b2e52a
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,31 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Prevent),
"Prevent"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source), new MagicPayManaCostEvent(source, "{G}"), new MagicDiscardEvent(source, 1)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Prevent all combat damage that would be dealt this turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicAddTurnTriggerAction(
MagicIfDamageWouldBeDealtTrigger.PreventCombatDamage
));
}
}
]

View File

@ -0,0 +1,10 @@
name=Dawnstrider
url=http://magiccards.info/mm/en/237.html
image=http://magiccards.info/scans/en/mm/237.jpg
value=4.038
rarity=R
type=Creature
subtype=Dryad,Spellshaper
cost={1}{G}
pt=1/1
timing=main