magarena/release/Magarena/scripts/Sliver_Legion.groovy

16 lines
507 B
Groovy
Raw Normal View History

[
new MagicStatic(
MagicLayer.ModPT,
MagicTargetFilter.TARGET_SLIVER
) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final int amount =
source.getController().getNrOfPermanents(MagicSubType.Sliver) +
source.getOpponent().getNrOfPermanents(MagicSubType.Sliver) -
1;
pt.add(amount,amount);
}
}
]