public HickoryWoodlot(UUID ownerId) {
super(ownerId, 319, "Hickory Woodlot", Rarity.COMMON, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "MMQ";
// Hickory Woodlot enters the battlefield tapped with two depletion counters on it.
this.addAbility(new EntersBattlefieldTappedAbility());
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.DEPLETION.createInstance(2))));
// {tap}, Remove a depletion counter from Hickory Woodlot: Add {G}{G} to your mana pool. If there are no depletion counters on Hickory Woodlot, sacrifice it.
Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(2), new TapSourceCost());
ability.addCost(new RemoveCountersSourceCost(CounterType.DEPLETION.createInstance(1)));
ability.addEffect(new ConditionalOneShotEffect(new SacrificeSourceEffect(), new SourceHasCounterCondition(CounterType.DEPLETION, 0,0), "If there are no depletion counters on Hickory Woodlot, sacrifice it"));