21 lines
735 B
Groovy
21 lines
735 B
Groovy
[
|
|
new MagicStatic(MagicLayer.ModPT) {
|
|
@Override
|
|
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
|
|
final MagicPlayer opponent = permanent.getChosenPlayer();
|
|
final int amount = opponent.getHandSize();
|
|
pt.add(-amount,-amount);
|
|
}
|
|
},
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPlayer player) {
|
|
permanent.setChosenTarget(player.getOpponent());
|
|
return MagicEvent.NONE;
|
|
}
|
|
}
|
|
]
|