mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
[LCI] Implement Armored Kincaller
This commit is contained in:
parent
96ec100b05
commit
46baac6747
2 changed files with 90 additions and 0 deletions
89
Mage.Sets/src/mage/cards/a/ArmoredKincaller.java
Normal file
89
Mage.Sets/src/mage/cards/a/ArmoredKincaller.java
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
package mage.cards.a;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
import mage.cards.Card;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.CardsImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.filter.FilterCard;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.players.Player;
|
||||||
|
import mage.target.common.TargetCardInHand;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class ArmoredKincaller extends CardImpl {
|
||||||
|
|
||||||
|
public ArmoredKincaller(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.DINOSAUR);
|
||||||
|
this.power = new MageInt(3);
|
||||||
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
|
// When Armored Kincaller enters the battlefield, you may reveal a Dinosaur card from your hand. If you do or if you control another Dinosaur, you gain 3 life.
|
||||||
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new ArmoredKincallerEffect()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ArmoredKincaller(final ArmoredKincaller card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ArmoredKincaller copy() {
|
||||||
|
return new ArmoredKincaller(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ArmoredKincallerEffect extends OneShotEffect {
|
||||||
|
|
||||||
|
private static final FilterCard filter = new FilterCard("a Dinosaur card");
|
||||||
|
private static final FilterPermanent filter2 = new FilterPermanent(SubType.DINOSAUR, "");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(SubType.DINOSAUR.getPredicate());
|
||||||
|
}
|
||||||
|
|
||||||
|
ArmoredKincallerEffect() {
|
||||||
|
super(Outcome.Benefit);
|
||||||
|
staticText = "you may reveal a Dinosaur card from your hand. " +
|
||||||
|
"If you do or if you control another Dinosaur, you gain 3 life";
|
||||||
|
}
|
||||||
|
|
||||||
|
private ArmoredKincallerEffect(final ArmoredKincallerEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ArmoredKincallerEffect copy() {
|
||||||
|
return new ArmoredKincallerEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
if (player == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TargetCardInHand target = new TargetCardInHand(0, 1, filter);
|
||||||
|
player.choose(outcome, player.getHand(), target, source, game);
|
||||||
|
Card card = game.getCard(target.getFirstTarget());
|
||||||
|
if (card != null) {
|
||||||
|
player.revealCards(source, new CardsImpl(card), game);
|
||||||
|
}
|
||||||
|
if (card != null || game.getBattlefield().contains(filter2, source, game, 1)) {
|
||||||
|
player.gainLife(3, game, source);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -34,6 +34,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Ancestral Reminiscence", 45, Rarity.COMMON, mage.cards.a.AncestralReminiscence.class));
|
cards.add(new SetCardInfo("Ancestral Reminiscence", 45, Rarity.COMMON, mage.cards.a.AncestralReminiscence.class));
|
||||||
cards.add(new SetCardInfo("Anim Pakal, Thousandth Moon", 223, Rarity.RARE, mage.cards.a.AnimPakalThousandthMoon.class));
|
cards.add(new SetCardInfo("Anim Pakal, Thousandth Moon", 223, Rarity.RARE, mage.cards.a.AnimPakalThousandthMoon.class));
|
||||||
cards.add(new SetCardInfo("Another Chance", 90, Rarity.COMMON, mage.cards.a.AnotherChance.class));
|
cards.add(new SetCardInfo("Another Chance", 90, Rarity.COMMON, mage.cards.a.AnotherChance.class));
|
||||||
|
cards.add(new SetCardInfo("Armored Kincaller", 174, Rarity.COMMON, mage.cards.a.ArmoredKincaller.class));
|
||||||
cards.add(new SetCardInfo("Attentive Sunscribe", 4, Rarity.COMMON, mage.cards.a.AttentiveSunscribe.class));
|
cards.add(new SetCardInfo("Attentive Sunscribe", 4, Rarity.COMMON, mage.cards.a.AttentiveSunscribe.class));
|
||||||
cards.add(new SetCardInfo("Bartolome del Presidio", 224, Rarity.UNCOMMON, mage.cards.b.BartolomeDelPresidio.class));
|
cards.add(new SetCardInfo("Bartolome del Presidio", 224, Rarity.UNCOMMON, mage.cards.b.BartolomeDelPresidio.class));
|
||||||
cards.add(new SetCardInfo("Basking Capybara", 175, Rarity.COMMON, mage.cards.b.BaskingCapybara.class));
|
cards.add(new SetCardInfo("Basking Capybara", 175, Rarity.COMMON, mage.cards.b.BaskingCapybara.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue