2013-05-18 05:47:49 -07:00
|
|
|
[
|
|
|
|
new MagicWhenDamageIsDealtTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicPermanent permanent,
|
|
|
|
final MagicDamage damage) {
|
|
|
|
final int amount = damage.getDealtAmount();
|
|
|
|
final MagicPermanent enchanted = permanent.getEnchantedCreature();
|
|
|
|
return damage.getTarget() == enchanted ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
enchanted.getController(),
|
|
|
|
amount,
|
|
|
|
this,
|
|
|
|
"PN puts RN 1/1 green Squirrel creature tokens onto the battlefield."
|
|
|
|
) :
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-15 03:20:38 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-05-18 05:47:49 -07:00
|
|
|
game.doAction(new MagicPlayTokensAction(
|
|
|
|
event.getPlayer(),
|
|
|
|
TokenCardDefinitions.get("Squirrel1"),
|
|
|
|
event.getRefInt()
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|