complete Gilder Bairn

master
melvinzhang 2015-05-22 10:08:07 +08:00
parent 6a4647eff2
commit d46a883033
2 changed files with 22 additions and 5 deletions

View File

@ -1,18 +1,31 @@
def PERMANENT_COUNTERS = new MagicPermanentFilterImpl() {
public boolean accept(final MagicSource source,final MagicPlayer player,final MagicPermanent target) {
return target.hasCounters();
}
};
def TARGET_PERMANENT_WITH_COUNTERS = new MagicTargetChoice(
PERMANENT_COUNTERS,
"target permanent with counters"
)
[
new MagicPermanentActivation(
[MagicCondition.CAN_UNTAP_CONDITION],
new MagicActivationHints(MagicTiming.Pump),
"+Counter"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicUntapEvent(source), new MagicPayManaCostEvent(source, "{2}{G/U}")];
return [
new MagicPayManaCostEvent(source, "{2}{G/U}"),
new MagicUntapEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
TARGET_PERMANENT, //Plus artificial TARGET_PERMANENT_WITH_COUNTERS?
TARGET_PERMANENT_WITH_COUNTERS,
this,
"For each counter on target permanent\$, PN puts another of those counters on that permanent."
);
@ -22,7 +35,11 @@
event.processTargetPermanent(game, {
for (final MagicCounterType counterType : MagicCounterType.values()) {
if (it.hasCounters(counterType)) {
game.doAction(new ChangeCountersAction(it, counterType, it.getCounters(counterType)));
game.doAction(new ChangeCountersAction(
it,
counterType,
it.getCounters(counterType)
));
}
}
});

View File

@ -6,6 +6,6 @@ type=Creature
subtype=Ouphe
cost={1}{G/U}{G/U}
pt=1/3
ability={2}{G/U}, {Q}: For each counter on target permanent, put another of those counters on that permanent.
timing=main
requires_groovy_code
oracle={2}{G/U}, {Q}: For each counter on target permanent, put another of those counters on that permanent.