added Boros Reckoner

master
melvin 2013-02-17 09:21:51 +08:00
parent 3e830fac90
commit 8f86795b39
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,30 @@
[
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final int amount = damage.getDealtAmount();
return (damage.getTarget() == permanent) ?
new MagicEvent(
permanent,
MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
new MagicDamageTargetPicker(amount),
amount,
this,
"SN deals " + amount + " damage to target creature or player\$."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
final MagicDamage damage=new MagicDamage(event.getSource(),target,event.getRefInt(),false);
game.doAction(new MagicDealDamageAction(damage));
}
});
}
}
]

View File

@ -0,0 +1,12 @@
name=Boros Reckoner
url=http://magiccards.info/gtc/en/215.html
image=http://magiccards.info/scans/en/gtc/215.jpg
value=3.937
rarity=R
type=Creature
subtype=Minotaur,Wizard
cost={R/W}{R/W}{R/W}
pt=3/3
ability=gains {R/W} first strike
timing=main
requires_groovy_code