29 lines
868 B
Groovy
29 lines
868 B
Groovy
[
|
|
new MagicManaActivation(
|
|
MagicManaType.ALL_TYPES,
|
|
2
|
|
) {
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent permanent) {
|
|
return (permanent.getCounters(MagicCounterType.Charge) == 1) ?
|
|
[
|
|
new MagicTapEvent(permanent),
|
|
new MagicRemoveCounterEvent(
|
|
permanent,
|
|
MagicCounterType.Charge,
|
|
1
|
|
),
|
|
new MagicSacrificeEvent(permanent)
|
|
]:
|
|
[
|
|
new MagicTapEvent(permanent),
|
|
new MagicRemoveCounterEvent(
|
|
permanent,
|
|
MagicCounterType.Charge,
|
|
1
|
|
)
|
|
];
|
|
}
|
|
}
|
|
]
|