magarena/release/Magarena/scripts/Tahngarth_s_Rage.groovy

17 lines
554 B
Groovy

[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
if (permanent.isAttacking()) {
pt.add(3, 0);
} else {
pt.add(-2, -1);
}
}
@Override
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return MagicStatic.acceptLinked(game, source, target);
}
}
]