Menu

Submission for Dawnstrider

237

Comment

is "MagicTiming.Prevent" available yet ? need to teach the Ai to prevent damage. i think "pump" is not really suit the situation.

Config

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

Script

[
	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
            ));			
		}
	}
]

Pushed