Add script for #<Enumerator:0x00000007c87830>

master
# 2013-09-08 14:54:49 +00:00
parent 462cdc2975
commit ee0affa887
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,23 @@
[
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
return (damage.getSource() == permanent &&
damage.isCombat() &&
damage.getTarget().isPlayer()) ?
new MagicEvent(
permanent,
this,
"Put a 1/1 white Soldier creature token onto the battlefield."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Soldier")
));
}
}
]

View File

@ -0,0 +1,12 @@
name=Precinct Captain
url=http://magiccards.info/rtr/en/17.html
image=http://magiccards.info/scans/en/rtr/17.jpg
value=0.74
rarity=R
type=Creature
subtype=Human,Soldier
cost={W}{W}
pt=2/2
ability=first strike
timing=main
requires_groovy_code