mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[NEO] Implemented Covert Tactician
This commit is contained in:
parent
b1c8aaed54
commit
e1ffef81ba
2 changed files with 79 additions and 0 deletions
78
Mage.Sets/src/mage/cards/c/CovertTechnician.java
Normal file
78
Mage.Sets/src/mage/cards/c/CovertTechnician.java
Normal file
|
@ -0,0 +1,78 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect;
|
||||
import mage.abilities.keyword.NinjutsuAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterArtifactCard;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CovertTechnician extends CardImpl {
|
||||
|
||||
public CovertTechnician(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.NINJA);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Ninjutsu {1}{U}
|
||||
this.addAbility(new NinjutsuAbility("{1}{U}"));
|
||||
|
||||
// Whenever Covert Technician deals combat damage to a player, you may put an artifact card with mana value less than or equal to that damage from your hand onto the battlefield.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||
new CovertTechnicianEffect(), false, true, false
|
||||
));
|
||||
}
|
||||
|
||||
private CovertTechnician(final CovertTechnician card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CovertTechnician copy() {
|
||||
return new CovertTechnician(this);
|
||||
}
|
||||
}
|
||||
|
||||
class CovertTechnicianEffect extends OneShotEffect {
|
||||
|
||||
CovertTechnicianEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "you may put an artifact card with mana value less than " +
|
||||
"or equal to that damage from your hand onto the battlefield";
|
||||
}
|
||||
|
||||
private CovertTechnicianEffect(final CovertTechnicianEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CovertTechnicianEffect copy() {
|
||||
return new CovertTechnicianEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
int damage = (Integer) getValue("damage");
|
||||
FilterCard filter = new FilterArtifactCard("artifact card with mana value " + damage + " or less");
|
||||
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, damage + 1));
|
||||
return new PutCardFromHandOntoBattlefieldEffect(filter).apply(game, source);
|
||||
}
|
||||
}
|
|
@ -31,6 +31,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Atsushi, the Blazing Sky", 134, Rarity.MYTHIC, mage.cards.a.AtsushiTheBlazingSky.class));
|
||||
cards.add(new SetCardInfo("Befriending the Moths", 4, Rarity.COMMON, mage.cards.b.BefriendingTheMoths.class));
|
||||
cards.add(new SetCardInfo("Bronzeplate Boar", 135, Rarity.UNCOMMON, mage.cards.b.BronzeplateBoar.class));
|
||||
cards.add(new SetCardInfo("Covert Technician", 49, Rarity.UNCOMMON, mage.cards.c.CovertTechnician.class));
|
||||
cards.add(new SetCardInfo("Dokuchi Shadow-Walker", 94, Rarity.COMMON, mage.cards.d.DokuchiShadowWalker.class));
|
||||
cards.add(new SetCardInfo("Enthusiastic Mechanaut", 218, Rarity.UNCOMMON, mage.cards.e.EnthusiasticMechanaut.class));
|
||||
cards.add(new SetCardInfo("Era of Enlightenment", 11, Rarity.COMMON, mage.cards.e.EraOfEnlightenment.class));
|
||||
|
|
Loading…
Reference in a new issue