magarena/release/Magarena/scripts/Konda_s_Hatamoto.groovy

23 lines
987 B
Groovy
Raw Normal View History

2013-05-18 04:50:22 -07:00
[
new MagicStatic(MagicLayer.Ability) {
2013-04-12 19:32:25 -07:00
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
final MagicGame game = source.getGame();
if (game.filterPermanents(permanent.getController(), MagicTargetFilter.TARGET_LEGENDARY_SAMURAI_YOU_CONTROL).size() > 0) {
flags.add(MagicAbility.Vigilance);
}
}
2013-05-18 04:50:22 -07:00
},
new MagicStatic(MagicLayer.ModPT) {
2013-04-12 19:32:25 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final MagicGame game = source.getGame();
final Collection<MagicPermanent> targets =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_LEGENDARY_SAMURAI_YOU_CONTROL);
if (targets.size() > 0) {
pt.add(1,2);
}
}
2013-05-18 04:50:22 -07:00
}
]