magarena/release/Magarena/scripts/Vault_of_the_Archangel.groovy

42 lines
1.4 KiB
Groovy
Raw Normal View History

2013-05-28 00:12:54 -07:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-05-28 00:12:54 -07:00
[
2013-06-14 19:56:26 -07:00
//add ONE for the card itself
2013-06-23 18:29:26 -07:00
MagicConditionFactory.ManaCost("{3}{W}{B}")
2013-05-28 00:12:54 -07:00
],
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{2}{W}{B}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Creatures PN controls gain deathtouch and lifelink until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets = game.filterPermanents(
event.getPlayer(),
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicGainAbilityAction(
2013-05-28 00:12:54 -07:00
creature,
[
MagicAbility.Deathtouch,
MagicAbility.Lifelink
]
));
}
}
}
]