magarena/release/Magarena/scripts/Joraga_Warcaller.groovy

16 lines
573 B
Groovy

[
new MagicStatic(
MagicLayer.ModPT,
MagicTargetFilter.TARGET_ELF_YOU_CONTROL) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final int amount = source.getCounters(MagicCounterType.PlusOne);
pt.add(amount, amount);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
}
]