magarena/release/Magarena/scripts/Gemstone_Mine.groovy

29 lines
868 B
Groovy
Raw Normal View History

2013-05-18 19:20:19 -07:00
[
new MagicManaActivation(
MagicManaType.ALL_TYPES,
2
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent permanent) {
2013-05-18 19:20:19 -07:00
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
)
];
}
}
]