2013-05-18 05:49:50 -07:00
|
|
|
[
|
|
|
|
new MagicStatic(MagicLayer.SetPT) {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
|
|
|
|
final int amount = permanent.getCounters(MagicCounterType.Charge);
|
|
|
|
pt.set(amount,amount);
|
|
|
|
}
|
2013-05-18 05:49:50 -07:00
|
|
|
},
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
|
|
|
final int amount = game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_ISLAND_YOU_CONTROL).size();
|
2013-04-12 19:32:25 -07:00
|
|
|
game.doAction(new MagicChangeCountersAction(
|
|
|
|
permanent,
|
|
|
|
MagicCounterType.Charge,
|
|
|
|
amount,
|
|
|
|
true
|
|
|
|
));
|
|
|
|
return MagicEvent.NONE;
|
|
|
|
}
|
2013-05-18 05:49:50 -07:00
|
|
|
}
|
|
|
|
]
|