mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Implement Necron Overlord (#10065)
This commit is contained in:
parent
5a99a3afa6
commit
0283273438
2 changed files with 98 additions and 0 deletions
97
Mage.Sets/src/mage/cards/n/NecronOverlord.java
Normal file
97
Mage.Sets/src/mage/cards/n/NecronOverlord.java
Normal file
|
@ -0,0 +1,97 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.common.TapTargetCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.dynamicvalue.common.GetXValue;
|
||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
import mage.target.common.TargetOpponent;
|
||||
import mage.abilities.costs.VariableCostImpl;
|
||||
import mage.abilities.costs.VariableCostType;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author @stwalsh4118
|
||||
*/
|
||||
public final class NecronOverlord extends CardImpl {
|
||||
|
||||
public NecronOverlord(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}{B}{B}");
|
||||
|
||||
this.subtype.add(SubType.NECRON);
|
||||
this.subtype.add(SubType.NOBLE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Relentless Mind -- {X}, {T}, Tap X untapped artifacts you control: Target opponent loses X life.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseLifeTargetEffect(GetXValue.instance), new ManaCostsImpl<>("{X}"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new NecronOverlordTapVariableArtifactCost().setText("Tap X untapped artifacts you control"));
|
||||
ability.withFlavorWord("Relentless Mind");
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
||||
private NecronOverlord(final NecronOverlord card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NecronOverlord copy() {
|
||||
return new NecronOverlord(this);
|
||||
}
|
||||
}
|
||||
|
||||
class NecronOverlordTapVariableArtifactCost extends VariableCostImpl {
|
||||
|
||||
public NecronOverlordTapVariableArtifactCost() {
|
||||
this( 0);
|
||||
}
|
||||
|
||||
public NecronOverlordTapVariableArtifactCost(String text) {
|
||||
this(0, text);
|
||||
}
|
||||
|
||||
public NecronOverlordTapVariableArtifactCost(int minimalCountersToPay) {
|
||||
this( minimalCountersToPay, "");
|
||||
}
|
||||
|
||||
public NecronOverlordTapVariableArtifactCost(int minimalCountersToPay, String text) {
|
||||
super(VariableCostType.NORMAL, "x");
|
||||
}
|
||||
|
||||
public NecronOverlordTapVariableArtifactCost(final NecronOverlordTapVariableArtifactCost cost) {
|
||||
super(cost);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NecronOverlordTapVariableArtifactCost copy() {
|
||||
return new NecronOverlordTapVariableArtifactCost(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cost getFixedCostsFromAnnouncedValue(int xValue) {
|
||||
TargetControlledPermanent target = new TargetControlledPermanent(xValue, xValue, StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT, true);
|
||||
Cost targetCost = new TapTargetCost(target);
|
||||
return targetCost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int announceXValue(Ability source, Game game) {
|
||||
return source.getManaCostsToPay().getX();
|
||||
}
|
||||
}
|
|
@ -183,6 +183,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Mystic Forge", 246, Rarity.RARE, mage.cards.m.MysticForge.class));
|
||||
cards.add(new SetCardInfo("Necron Deathmark", 42, Rarity.RARE, mage.cards.n.NecronDeathmark.class));
|
||||
cards.add(new SetCardInfo("Necron Monolith", 161, Rarity.RARE, mage.cards.n.NecronMonolith.class));
|
||||
cards.add(new SetCardInfo("Necron Overlord", 43, Rarity.RARE, mage.cards.n.NecronOverlord.class));
|
||||
cards.add(new SetCardInfo("New Horizons", 218, Rarity.COMMON, mage.cards.n.NewHorizons.class));
|
||||
cards.add(new SetCardInfo("Nexos", 95, Rarity.RARE, mage.cards.n.Nexos.class));
|
||||
cards.add(new SetCardInfo("Night Scythe", 162, Rarity.UNCOMMON, mage.cards.n.NightScythe.class));
|
||||
|
|
Loading…
Reference in a new issue