2013-02-19 22:07:54 -08:00
|
|
|
[
|
2013-02-20 06:03:02 -08:00
|
|
|
new MagicSpellCardEvent() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
MagicTargetChoice.TARGET_CREATURE_YOU_DONT_CONTROL,
|
|
|
|
new MagicTapTargetPicker(true,false),
|
|
|
|
this,
|
|
|
|
"Tap target creature\$ you don't control."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
2013-03-21 06:35:09 -07:00
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
2013-02-20 06:03:02 -08:00
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicTapAction(creature,true));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
2013-02-19 22:07:54 -08:00
|
|
|
new MagicCardActivation(
|
|
|
|
[
|
2013-02-26 21:18:13 -08:00
|
|
|
MagicConditionFactory.ManaCost("{3}{U}")
|
2013-02-19 22:07:54 -08:00
|
|
|
],
|
|
|
|
new MagicActivationHints(MagicTiming.Tapping,true),
|
|
|
|
"Overload"
|
|
|
|
) {
|
|
|
|
public MagicEvent[] getCostEvent(final MagicCard source) {
|
|
|
|
return [
|
2013-02-26 21:18:13 -08:00
|
|
|
new MagicPayManaCostEvent(source, source.getController(), MagicManaCost.create("{3}{U}"))
|
2013-02-19 22:07:54 -08:00
|
|
|
];
|
|
|
|
}
|
2013-02-20 06:03:02 -08:00
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
this,
|
|
|
|
"Tap each creature\$ you don't control."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
|
|
|
final Collection<MagicPermanent> targets=
|
|
|
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS);
|
|
|
|
for (final MagicPermanent target : targets) {
|
|
|
|
game.doAction(new MagicTapAction(target,true));
|
|
|
|
}
|
2013-02-19 22:07:54 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|