Menu

Submission for Venerated Teacher

93

Comment

Hacked together an ugly implementation of Venerated Teacher, because I needed it. Needs polish, but it enables my leveler deck and frankly that's all the work I care to do. (Though I don't know that an AI would be able to handle it.) I also have no clue what the "value" entry in the .txt should be.

Config

name=Venerated Teacher
url=http://magiccards.info/roe/en/93.html
image=http://magiccards.info/scans/en/roe/93.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Wizard
cost={2}{U}
pt=2/2
timing=main
requires_groovy_code

Script

[
	new MagicWhenComesIntoPlayTrigger() {
		@Override
		public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
			return new MagicEvent(
				permanent,
				this,
				"PN places two level tokens on each creature with level up he or she controls."
			);
		}
		@Override
		public void executeEvent(final MagicGame game, final MagicEvent event) {
			final Collection<MagicPermanent> targets=
				game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
			for (final MagicPermanent target : targets) {
				if (target.hasAbility(MagicAbility.LevelUp)) {
					game.doAction(new MagicChangeCountersAction(
						target,
						MagicCounterType.Level,
						2,
						true
					));
				}
			}
		}
	}
]
Pushed