2013-02-20 06:15:40 -08:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
|
|
|
new MagicTapTargetPicker(true,false),
|
|
|
|
this,
|
|
|
|
"Target creature\$ you control gets +0/+1 and gains hexproof until end of turn."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
|
|
|
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicChangeTurnPTAction(creature, 0, 1));
|
|
|
|
game.doAction(new MagicSetAbilityAction(creature, MagicAbility.Hexproof));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
new MagicCardActivation(
|
|
|
|
[
|
2013-02-26 21:18:13 -08:00
|
|
|
MagicConditionFactory.ManaCost("{1}{U}")
|
2013-02-20 06:15:40 -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("{1}{U}"))
|
2013-02-20 06:15:40 -08:00
|
|
|
];
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
this,
|
|
|
|
"Each creature you control gets +0/+1 and gains hexproof until end of turn."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
|
|
|
final Collection<MagicPermanent> targets=
|
|
|
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
|
|
|
for (final MagicPermanent creature : targets) {
|
|
|
|
game.doAction(new MagicChangeTurnPTAction(creature, 0, 1));
|
|
|
|
game.doAction(new MagicSetAbilityAction(creature, MagicAbility.Hexproof));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|