46 lines
2.0 KiB
Groovy
46 lines
2.0 KiB
Groovy
def Pump = new MagicPumpActivation(MagicManaCost.create("{R/W}"),1,0);
|
|
|
|
[
|
|
new MagicStatic(MagicLayer.ModPT) {
|
|
@Override
|
|
public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
|
|
pt.add(1, 1);
|
|
}
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Red);
|
|
}
|
|
},
|
|
new MagicStatic(MagicLayer.Ability) {
|
|
@Override
|
|
public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set<MagicAbility> flags) {
|
|
permanent.addActivation(Pump);
|
|
}
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.Red);
|
|
}
|
|
},
|
|
new MagicStatic(MagicLayer.ModPT) {
|
|
@Override
|
|
public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
|
|
pt.add(1, 1);
|
|
}
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.White);
|
|
}
|
|
},
|
|
new MagicStatic(MagicLayer.Ability) {
|
|
@Override
|
|
public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set<MagicAbility> flags) {
|
|
flags.add(MagicAbility.Lifelink);
|
|
}
|
|
|
|
@Override
|
|
public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return MagicStatic.acceptLinked(game, source, target) && target.hasColor(MagicColor.White);
|
|
}
|
|
}
|
|
]
|