mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[40K] Implemented Cybernetica Datasmith
This commit is contained in:
parent
662d10aca2
commit
1b7bea1464
3 changed files with 107 additions and 0 deletions
71
Mage.Sets/src/mage/cards/c/CyberneticaDatasmith.java
Normal file
71
Mage.Sets/src/mage/cards/c/CyberneticaDatasmith.java
Normal file
|
@ -0,0 +1,71 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenTargetEffect;
|
||||
import mage.abilities.effects.common.DrawCardTargetEffect;
|
||||
import mage.abilities.keyword.ProtectionAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPlayer;
|
||||
import mage.filter.predicate.other.AnotherTargetPredicate;
|
||||
import mage.game.permanent.token.RobotToken;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.targetpointer.SecondTargetPointer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CyberneticaDatasmith extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("Robots");
|
||||
private static final FilterPlayer filter2 = new FilterPlayer();
|
||||
|
||||
static {
|
||||
filter.add(SubType.ROBOT.getPredicate());
|
||||
filter2.add(new AnotherTargetPredicate(2));
|
||||
}
|
||||
|
||||
public CyberneticaDatasmith(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{U}{B}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ARTIFICER);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Protection from Robots
|
||||
this.addAbility(new ProtectionAbility(filter));
|
||||
|
||||
// Field Reprogramming -- {U}, {T}: Target player draws a card. Another target player creates a 4/4 colorless Robot artifact creature token with "This creature can't block."
|
||||
Ability ability = new SimpleActivatedAbility(new DrawCardTargetEffect(1), new ManaCostsImpl<>("{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addEffect(new CreateTokenTargetEffect(new RobotToken())
|
||||
.setTargetPointer(new SecondTargetPointer())
|
||||
.concatBy("another"));
|
||||
ability.addTarget(new TargetPlayer()
|
||||
.setTargetTag(1)
|
||||
.withChooseHint("draws a card"));
|
||||
ability.addTarget(new TargetPlayer(filter2)
|
||||
.setTargetTag(2)
|
||||
.withChooseHint("creates a token"));
|
||||
this.addAbility(ability.withFlavorWord("Field Reprogramming"));
|
||||
}
|
||||
|
||||
private CyberneticaDatasmith(final CyberneticaDatasmith card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CyberneticaDatasmith copy() {
|
||||
return new CyberneticaDatasmith(this);
|
||||
}
|
||||
}
|
|
@ -79,6 +79,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Crumbling Necropolis", 273, Rarity.UNCOMMON, mage.cards.c.CrumblingNecropolis.class));
|
||||
cards.add(new SetCardInfo("Cryptothrall", 155, Rarity.RARE, mage.cards.c.Cryptothrall.class));
|
||||
cards.add(new SetCardInfo("Cultivate", 211, Rarity.COMMON, mage.cards.c.Cultivate.class));
|
||||
cards.add(new SetCardInfo("Cybernetica Datasmith", 114, Rarity.RARE, mage.cards.c.CyberneticaDatasmith.class));
|
||||
cards.add(new SetCardInfo("Dark Ritual", 196, Rarity.COMMON, mage.cards.d.DarkRitual.class));
|
||||
cards.add(new SetCardInfo("Darkness", 197, Rarity.COMMON, mage.cards.d.Darkness.class));
|
||||
cards.add(new SetCardInfo("Darkwater Catacombs", 274, Rarity.RARE, mage.cards.d.DarkwaterCatacombs.class));
|
||||
|
|
35
Mage/src/main/java/mage/game/permanent/token/RobotToken.java
Normal file
35
Mage/src/main/java/mage/game/permanent/token/RobotToken.java
Normal file
|
@ -0,0 +1,35 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.combat.CantBlockSourceEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RobotToken extends TokenImpl {
|
||||
|
||||
public RobotToken() {
|
||||
super("Robot Token", "4/4 colorless Robot artifact creature token with \"This creature can't block.\"");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.ROBOT);
|
||||
power = new MageInt(4);
|
||||
toughness = new MageInt(4);
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new CantBlockSourceEffect(Duration.WhileOnBattlefield)
|
||||
.setText("this creature can't block")
|
||||
));
|
||||
}
|
||||
|
||||
public RobotToken(final RobotToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public RobotToken copy() {
|
||||
return new RobotToken(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue