Add script for #<Enumerator:0x00000007c87830>
parent
462cdc2975
commit
ee0affa887
|
@ -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")
|
||||
));
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue