magarena/release/Magarena/scripts/Goblin_King.groovy

27 lines
969 B
Groovy
Raw Normal View History

2013-05-17 22:52:18 -07:00
[
new MagicStatic(
2012-07-03 00:38:56 -07:00
MagicLayer.Ability,
MagicTargetFilter.TARGET_GOBLIN_YOU_CONTROL) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Mountainwalk);
2012-07-03 00:38:56 -07:00
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
2013-05-17 22:52:18 -07:00
},
new MagicStatic(
2012-07-03 00:38:56 -07:00
MagicLayer.ModPT,
MagicTargetFilter.TARGET_GOBLIN_YOU_CONTROL) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
2012-07-03 00:38:56 -07:00
pt.add(1,1);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
2013-05-17 22:52:18 -07:00
}
]