Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions Mage.Sets/src/mage/cards/t/TChakaVenerableKing.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package mage.cards.t;

import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.ActivateIfConditionActivatedAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.ControlYourCommanderCondition;
import mage.abilities.costs.common.ExileSourceFromGraveCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.BecomesMonarchSourceEffect;
import mage.abilities.effects.common.MillThenPutInHandEffect;
import mage.abilities.hint.common.MonarchHint;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;

/**
*
* @author muz
*/
public final class TChakaVenerableKing extends CardImpl {

private static final FilterCard filter = new FilterCard("an artifact or land card");

static {
filter.add(CardType.ARTIFACT.getPredicate());
filter.add(CardType.LAND.getPredicate());
}

public TChakaVenerableKing(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}");

this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.NOBLE);
this.subtype.add(SubType.HERO);
this.power = new MageInt(2);
this.toughness = new MageInt(2);

// When T'Chaka enters, mill three cards, then you may put an artifact or land card from among the milled cards into your hand.
this.addAbility(new EntersBattlefieldTriggeredAbility(new MillThenPutInHandEffect(3, filter)));

// {3}, Exile this card from your graveyard: You become the monarch. Activate only if you control your commander.
Ability ability = new ActivateIfConditionActivatedAbility(
Zone.GRAVEYARD,
new BecomesMonarchSourceEffect(),
new ManaCostsImpl<>("{3}"),
ControlYourCommanderCondition.instance
).addHint(MonarchHint.instance);
ability.addCost(new ExileSourceFromGraveCost());
this.addAbility(ability);
}

private TChakaVenerableKing(final TChakaVenerableKing card) {
super(card);
}

@Override
public TChakaVenerableKing copy() {
return new TChakaVenerableKing(this);
}
}
2 changes: 2 additions & 0 deletions Mage.Sets/src/mage/sets/MarvelSuperHeroesCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ private MarvelSuperHeroesCommander() {
cards.add(new SetCardInfo("Sword of the Animist", 452, Rarity.RARE, mage.cards.s.SwordOfTheAnimist.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Swords to Plowshares", 143, Rarity.UNCOMMON, mage.cards.s.SwordsToPlowshares.class));
cards.add(new SetCardInfo("Syphon Mind", 159, Rarity.COMMON, mage.cards.s.SyphonMind.class));
cards.add(new SetCardInfo("T'Chaka, Venerable King", 419, Rarity.RARE, mage.cards.t.TChakaVenerableKing.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("T'Chaka, Venerable King", 98, Rarity.RARE, mage.cards.t.TChakaVenerableKing.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("T'Challa, the Black Panther", 7, Rarity.MYTHIC, mage.cards.t.TChallaTheBlackPanther.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("T'Challa, the Black Panther", 881, Rarity.MYTHIC, mage.cards.t.TChallaTheBlackPanther.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("TVA Bureaucrat", 761, Rarity.COMMON, mage.cards.t.TVABureaucrat.class));
Expand Down
Loading