added Legion Loyalist

master
melvin 2013-02-17 13:58:55 +08:00
parent d960daaa1d
commit 1ef5def3ba
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,28 @@
[
new MagicBattalionTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPermanent attacker) {
return new MagicEvent(
permanent,
this,
"Creatures PN controls gain first strike and trample until end of turn and can't be blocked by creature tokens this turn."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
final Collection<MagicPermanent> creatures=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : creatures) {
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.FirstStrike));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Trample));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.CannotBeBlockedByTokens));
}
}
}
]

View File

@ -0,0 +1,12 @@
name=Legion Loyalist
url=http://magiccards.info/gtc/en/97.html
image=http://magiccards.info/scans/en/gtc/97.jpg
value=3.937
rarity=R
type=Creature
subtype=Goblin,Soldier
cost={R}
pt=1/1
ability=haste
timing=main
requires_groovy_code