29 lines
1.0 KiB
Groovy
29 lines
1.0 KiB
Groovy
[
|
|
new MagicStatic(MagicLayer.ModPT) {
|
|
@Override
|
|
public void modPowerToughness(
|
|
final MagicPermanent source,
|
|
final MagicPermanent permanent,
|
|
final MagicPowerToughness pt) {
|
|
pt.add(1, 2);
|
|
}
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.White);
|
|
}
|
|
},
|
|
new MagicStatic(MagicLayer.ModPT) {
|
|
@Override
|
|
public void modPowerToughness(
|
|
final MagicPermanent source,
|
|
final MagicPermanent permanent,
|
|
final MagicPowerToughness pt) {
|
|
pt.add(2, 1);
|
|
}
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Black);
|
|
}
|
|
}
|
|
]
|