magarena/release/Magarena/scripts/Jund_Hackblade.groovy

21 lines
940 B
Groovy
Raw Normal View History

[
2013-04-01 07:38:08 -07:00
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final MagicPermanentFilterImpl filter = new MagicOtherPermanentTargetFilter(MagicTargetFilter.TARGET_MULTICOLOR_PERMANENT, source);
if (source.getController().controlsPermanent(filter)) {
2013-04-01 07:38:08 -07:00
pt.add(1,1);
}
2013-06-23 18:29:26 -07:00
}
2013-04-01 07:38:08 -07:00
},
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
final MagicPermanentFilterImpl filter = new MagicOtherPermanentTargetFilter(MagicTargetFilter.TARGET_MULTICOLOR_PERMANENT, source);
if (source.getController().controlsPermanent(filter)) {
flags.add(MagicAbility.Haste);
}
}
}
]