2013-05-27 02:43:17 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
|
|
|
[
|
|
|
|
MagicConditionFactory.ChargeCountersAtLeast(2),
|
|
|
|
],
|
|
|
|
new MagicActivationHints(MagicTiming.Token),
|
|
|
|
"Token"
|
|
|
|
) {
|
|
|
|
|
|
|
|
@Override
|
2013-08-30 21:00:50 -07:00
|
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
2013-05-27 02:43:17 -07:00
|
|
|
return [new MagicTapEvent(source)];
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
|
|
final int amount = source.getCounters(MagicCounterType.Charge);
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
amount >= 6 ? 2 : 1,
|
|
|
|
this,
|
|
|
|
"PN puts RN 3/3 green Elephant creature tokens onto the battlefield."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
game.doAction(new MagicPlayTokensAction(
|
|
|
|
event.getPlayer(),
|
|
|
|
TokenCardDefinitions.get("Elephant"),
|
|
|
|
event.getRefInt()
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|