[LCI] Implement Child of the Volcano

This commit is contained in:
theelk801 2023-11-03 18:57:05 -04:00
parent 16bf7190d4
commit 403a47580d
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.condition.common.DescendedThisTurnCondition;
import mage.abilities.dynamicvalue.common.DescendedThisTurnCount;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.counters.CounterType;
import mage.watchers.common.DescendedWatcher;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ChildOfTheVolcano extends CardImpl {
public ChildOfTheVolcano(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.subtype.add(SubType.ELEMENTAL);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Trample
this.addAbility(TrampleAbility.getInstance());
// At the beginning of your end step, if you descended this turn, put a +1/+1 counter on Child of the Volcano.
this.addAbility(new BeginningOfEndStepTriggeredAbility(
new AddCountersSourceEffect(CounterType.P1P1.createInstance()),
TargetController.YOU, DescendedThisTurnCondition.instance, false
).addHint(DescendedThisTurnCount.getHint()), new DescendedWatcher());
}
private ChildOfTheVolcano(final ChildOfTheVolcano card) {
super(card);
}
@Override
public ChildOfTheVolcano copy() {
return new ChildOfTheVolcano(this);
}
}

View file

@ -47,6 +47,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
cards.add(new SetCardInfo("Cavernous Maw", 270, Rarity.UNCOMMON, mage.cards.c.CavernousMaw.class));
cards.add(new SetCardInfo("Cenote Scout", 178, Rarity.UNCOMMON, mage.cards.c.CenoteScout.class));
cards.add(new SetCardInfo("Chart a Course", 48, Rarity.UNCOMMON, mage.cards.c.ChartACourse.class));
cards.add(new SetCardInfo("Child of the Volcano", 140, Rarity.COMMON, mage.cards.c.ChildOfTheVolcano.class));
cards.add(new SetCardInfo("Chimil, the Inner Sun", 249, Rarity.MYTHIC, mage.cards.c.ChimilTheInnerSun.class));
cards.add(new SetCardInfo("Chupacabra Echo", 97, Rarity.UNCOMMON, mage.cards.c.ChupacabraEcho.class));
cards.add(new SetCardInfo("Clay-Fired Bricks", 6, Rarity.UNCOMMON, mage.cards.c.ClayFiredBricks.class));