mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
Changed split cards to fit last changes of SplitCard object.
This commit is contained in:
parent
bc03760e08
commit
a06a729a04
5 changed files with 37 additions and 57 deletions
|
@ -35,7 +35,6 @@ import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||||
import mage.abilities.keyword.FuseAbility;
|
import mage.abilities.keyword.FuseAbility;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.SplitCard;
|
import mage.cards.SplitCard;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
@ -51,24 +50,23 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
public class GiveTake extends SplitCard<GiveTake> {
|
public class GiveTake extends SplitCard<GiveTake> {
|
||||||
|
|
||||||
public GiveTake(UUID ownerId) {
|
public GiveTake(UUID ownerId) {
|
||||||
super(ownerId, 129, "Give - Take", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{G}{2}{U}");
|
super(ownerId, 129, "Give", "Take", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{G}","{2}{U}");
|
||||||
this.expansionSetCode = "DGM";
|
this.expansionSetCode = "DGM";
|
||||||
|
|
||||||
this.color.setGreen(true);
|
this.color.setGreen(true);
|
||||||
this.color.setBlue(true);
|
this.color.setBlue(true);
|
||||||
|
|
||||||
// Give
|
// Give
|
||||||
Card leftHalfCard = this.createLeftHalfCard("Give", "{2}{G}");
|
|
||||||
// Put three +1/+1 counters on target creature.
|
// Put three +1/+1 counters on target creature.
|
||||||
leftHalfCard.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(3)));
|
getLeftHalfCard().getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance(3)));
|
||||||
leftHalfCard.getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
||||||
|
getLeftHalfCard().getColor().setGreen(true);
|
||||||
|
|
||||||
// Take
|
// Take
|
||||||
Card rightHalfCard = this.createRightHalfCard("Take", "{2}{U}");
|
|
||||||
// Remove all +1/+1 counters from target creature you control. Draw that many cards.
|
// Remove all +1/+1 counters from target creature you control. Draw that many cards.
|
||||||
rightHalfCard.getSpellAbility().addEffect(new TakeEffect());
|
getRightHalfCard().getSpellAbility().addEffect(new TakeEffect());
|
||||||
rightHalfCard.getSpellAbility().addTarget(new TargetControlledCreaturePermanent(true));
|
getRightHalfCard().getSpellAbility().addTarget(new TargetControlledCreaturePermanent(true));
|
||||||
|
getLeftHalfCard().getColor().setBlue(true);
|
||||||
|
|
||||||
// Fuse (You may cast one or both halves of this card from your hand.)
|
// Fuse (You may cast one or both halves of this card from your hand.)
|
||||||
this.addAbility(new FuseAbility(this, this.getManaCost()));
|
this.addAbility(new FuseAbility(this, this.getManaCost()));
|
||||||
|
|
|
@ -32,8 +32,6 @@ import mage.Constants;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Duration;
|
import mage.Constants.Duration;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
import mage.MageInt;
|
|
||||||
import mage.ObjectColor;
|
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.IndestructibleAllEffect;
|
import mage.abilities.effects.common.IndestructibleAllEffect;
|
||||||
import mage.abilities.effects.common.UntapAllControllerEffect;
|
import mage.abilities.effects.common.UntapAllControllerEffect;
|
||||||
|
@ -41,11 +39,9 @@ import mage.abilities.effects.common.continious.GainAbilityControlledEffect;
|
||||||
import mage.abilities.keyword.DeathtouchAbility;
|
import mage.abilities.keyword.DeathtouchAbility;
|
||||||
import mage.abilities.keyword.FuseAbility;
|
import mage.abilities.keyword.FuseAbility;
|
||||||
import mage.abilities.keyword.LifelinkAbility;
|
import mage.abilities.keyword.LifelinkAbility;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.SplitCard;
|
import mage.cards.SplitCard;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.game.permanent.token.Token;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -54,7 +50,7 @@ import mage.game.permanent.token.Token;
|
||||||
public class ReadyWilling extends SplitCard<ReadyWilling> {
|
public class ReadyWilling extends SplitCard<ReadyWilling> {
|
||||||
|
|
||||||
public ReadyWilling(UUID ownerId) {
|
public ReadyWilling(UUID ownerId) {
|
||||||
super(ownerId, 132, "Ready - Willing", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{1}{G}{W}{1}{W}{B}");
|
super(ownerId, 132, "Ready", "Willing", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{1}{G}{W}", "{1}{W}{B}");
|
||||||
this.expansionSetCode = "DGM";
|
this.expansionSetCode = "DGM";
|
||||||
|
|
||||||
this.color.setGreen(true);
|
this.color.setGreen(true);
|
||||||
|
@ -62,18 +58,20 @@ public class ReadyWilling extends SplitCard<ReadyWilling> {
|
||||||
this.color.setBlack(true);
|
this.color.setBlack(true);
|
||||||
|
|
||||||
// Ready
|
// Ready
|
||||||
Card leftHalfCard = this.createLeftHalfCard("Ready", "{1}{G}{W}");
|
|
||||||
// Creatures you control are indestructible this turn. Untap each creature you control.
|
// Creatures you control are indestructible this turn. Untap each creature you control.
|
||||||
leftHalfCard.getSpellAbility().addEffect(new IndestructibleAllEffect(new FilterControlledCreaturePermanent("Creatures you controll"), Constants.Duration.EndOfTurn));
|
getLeftHalfCard().getColor().setGreen(true);
|
||||||
leftHalfCard.getSpellAbility().addEffect(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(),"Untap each creature you control"));
|
getLeftHalfCard().getColor().setWhite(true);
|
||||||
|
getLeftHalfCard().getSpellAbility().addEffect(new IndestructibleAllEffect(new FilterControlledCreaturePermanent("Creatures you controll"), Constants.Duration.EndOfTurn));
|
||||||
|
getLeftHalfCard().getSpellAbility().addEffect(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(),"Untap each creature you control"));
|
||||||
|
|
||||||
// Willing
|
// Willing
|
||||||
Card rightHalfCard = this.createRightHalfCard("Willing", "{1}{W}{B}");
|
|
||||||
// Creatures you control gain deathtouch and lifelink until end of turn.
|
// Creatures you control gain deathtouch and lifelink until end of turn.
|
||||||
rightHalfCard.getSpellAbility().addEffect(new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("Creatures")) );
|
getRightHalfCard().getColor().setWhite(true);
|
||||||
|
getRightHalfCard().getColor().setBlack(true);
|
||||||
|
getRightHalfCard().getSpellAbility().addEffect(new GainAbilityControlledEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("Creatures")) );
|
||||||
Effect effect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("Creatures"));
|
Effect effect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent("Creatures"));
|
||||||
effect.setText("Creatures you control gain lifelink until end of turn.");
|
effect.setText("Creatures you control gain lifelink until end of turn.");
|
||||||
rightHalfCard.getSpellAbility().addEffect(effect);
|
getRightHalfCard().getSpellAbility().addEffect(effect);
|
||||||
|
|
||||||
// Fuse (You may cast one or both halves of this card from your hand.)
|
// Fuse (You may cast one or both halves of this card from your hand.)
|
||||||
this.addAbility(new FuseAbility(this, this.getManaCost()));
|
this.addAbility(new FuseAbility(this, this.getManaCost()));
|
||||||
|
@ -88,17 +86,4 @@ public class ReadyWilling extends SplitCard<ReadyWilling> {
|
||||||
return new ReadyWilling(this);
|
return new ReadyWilling(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class WeirdToken extends Token {
|
|
||||||
|
|
||||||
private WeirdToken() {
|
|
||||||
super("Weird", "0/1 red Weird");
|
|
||||||
cardType.add(Constants.CardType.CREATURE);
|
|
||||||
color = ObjectColor.RED;
|
|
||||||
subtype.add("Weird");
|
|
||||||
power = new MageInt(0);
|
|
||||||
toughness = new MageInt(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@ import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.abilities.effects.common.continious.BecomesCreatureTargetEffect;
|
import mage.abilities.effects.common.continious.BecomesCreatureTargetEffect;
|
||||||
import mage.abilities.effects.common.continious.LoseAllAbilitiesTargetEffect;
|
import mage.abilities.effects.common.continious.LoseAllAbilitiesTargetEffect;
|
||||||
import mage.abilities.keyword.FuseAbility;
|
import mage.abilities.keyword.FuseAbility;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.SplitCard;
|
import mage.cards.SplitCard;
|
||||||
import mage.game.permanent.token.Token;
|
import mage.game.permanent.token.Token;
|
||||||
import mage.target.common.TargetCreatureOrPlayer;
|
import mage.target.common.TargetCreatureOrPlayer;
|
||||||
|
@ -52,26 +51,26 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
public class TurnBurn extends SplitCard<TurnBurn> {
|
public class TurnBurn extends SplitCard<TurnBurn> {
|
||||||
|
|
||||||
public TurnBurn(UUID ownerId) {
|
public TurnBurn(UUID ownerId) {
|
||||||
super(ownerId, 134, "Turn - Burn", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{U}{1}{R}");
|
super(ownerId, 134, "Turn", "Burn", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{U}", "{1}{R}");
|
||||||
this.expansionSetCode = "DGM";
|
this.expansionSetCode = "DGM";
|
||||||
|
|
||||||
this.color.setBlue(true);
|
this.color.setBlue(true);
|
||||||
this.color.setRed(true);
|
this.color.setRed(true);
|
||||||
|
|
||||||
// Turn
|
// Turn
|
||||||
Card leftHalfCard = this.createLeftHalfCard("Turn", "{2}{U}");
|
|
||||||
// Target creature loses all abilities and becomes a 0/1 red Weird until end of turn.
|
// Target creature loses all abilities and becomes a 0/1 red Weird until end of turn.
|
||||||
leftHalfCard.getSpellAbility().addEffect(new LoseAllAbilitiesTargetEffect(Duration.EndOfTurn));
|
getLeftHalfCard().getColor().setBlue(true);
|
||||||
leftHalfCard.getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new WeirdToken(),null, Duration.EndOfTurn));
|
getLeftHalfCard().getSpellAbility().addEffect(new LoseAllAbilitiesTargetEffect(Duration.EndOfTurn));
|
||||||
leftHalfCard.getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
getLeftHalfCard().getSpellAbility().addEffect(new BecomesCreatureTargetEffect(new WeirdToken(),null, Duration.EndOfTurn));
|
||||||
|
getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
||||||
|
|
||||||
// Burn
|
// Burn
|
||||||
Card rightHalfCard = this.createRightHalfCard("Burn", "{1}{R}");
|
|
||||||
// Burn deals 2 damage to target creature or player.
|
// Burn deals 2 damage to target creature or player.
|
||||||
|
getRightHalfCard().getColor().setRed(true);
|
||||||
Effect effect = new DamageTargetEffect(2);
|
Effect effect = new DamageTargetEffect(2);
|
||||||
effect.setText("Burn deals 2 damage to target creature or player.");
|
effect.setText("Burn deals 2 damage to target creature or player.");
|
||||||
rightHalfCard.getSpellAbility().addEffect(effect);
|
getRightHalfCard().getSpellAbility().addEffect(effect);
|
||||||
rightHalfCard.getSpellAbility().addTarget(new TargetCreatureOrPlayer(true));
|
getRightHalfCard().getSpellAbility().addTarget(new TargetCreatureOrPlayer(true));
|
||||||
|
|
||||||
|
|
||||||
// Fuse (You may cast one or both halves of this card from your hand.)
|
// Fuse (You may cast one or both halves of this card from your hand.)
|
||||||
|
|
|
@ -32,7 +32,6 @@ import mage.Constants.CardType;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||||
import mage.abilities.keyword.FuseAbility;
|
import mage.abilities.keyword.FuseAbility;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.SplitCard;
|
import mage.cards.SplitCard;
|
||||||
import mage.filter.common.FilterEnchantment;
|
import mage.filter.common.FilterEnchantment;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
|
@ -46,27 +45,27 @@ import mage.target.common.TargetArtifactPermanent;
|
||||||
public class WearTear extends SplitCard<WearTear> {
|
public class WearTear extends SplitCard<WearTear> {
|
||||||
|
|
||||||
public WearTear(UUID ownerId) {
|
public WearTear(UUID ownerId) {
|
||||||
super(ownerId, 135, "Wear - Tear", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{R}{W}");
|
super(ownerId, 135, "Wear", "Tear", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{R}", "{W}");
|
||||||
this.expansionSetCode = "DGM";
|
this.expansionSetCode = "DGM";
|
||||||
|
|
||||||
this.color.setRed(true);
|
this.color.setRed(true);
|
||||||
this.color.setWhite(true);
|
this.color.setWhite(true);
|
||||||
|
|
||||||
// Wear
|
// Wear
|
||||||
Card leftHalfCard = this.createLeftHalfCard("Wear", "{1}{R}");
|
|
||||||
// Destroy target artifact.
|
// Destroy target artifact.
|
||||||
leftHalfCard.getSpellAbility().addEffect(new DestroyTargetEffect());
|
getLeftHalfCard().getColor().setRed(true);
|
||||||
|
getLeftHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||||
Target target = new TargetArtifactPermanent();
|
Target target = new TargetArtifactPermanent();
|
||||||
target.setRequired(true);
|
target.setRequired(true);
|
||||||
leftHalfCard.getSpellAbility().addTarget(target);
|
getLeftHalfCard().getSpellAbility().addTarget(target);
|
||||||
|
|
||||||
// Tear
|
// Tear
|
||||||
Card rightHalfCard = this.createRightHalfCard("Tear", "{W}");
|
|
||||||
// Destroy target enchantment.
|
// Destroy target enchantment.
|
||||||
rightHalfCard.getSpellAbility().addEffect(new DestroyTargetEffect());
|
getRightHalfCard().getColor().setWhite(true);
|
||||||
|
getRightHalfCard().getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||||
target = new TargetPermanent(new FilterEnchantment());
|
target = new TargetPermanent(new FilterEnchantment());
|
||||||
target.setRequired(true);
|
target.setRequired(true);
|
||||||
rightHalfCard.getSpellAbility().addTarget(target);
|
getRightHalfCard().getSpellAbility().addTarget(target);
|
||||||
|
|
||||||
|
|
||||||
// Fuse (You may cast one or both halves of this card from your hand.)
|
// Fuse (You may cast one or both halves of this card from your hand.)
|
||||||
|
|
|
@ -34,7 +34,6 @@ import mage.Constants.Rarity;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.cards.SplitCard;
|
import mage.cards.SplitCard;
|
||||||
import mage.game.permanent.token.ElephantToken;
|
import mage.game.permanent.token.ElephantToken;
|
||||||
import mage.target.common.TargetCreatureOrPlayer;
|
import mage.target.common.TargetCreatureOrPlayer;
|
||||||
|
@ -48,24 +47,24 @@ import mage.target.common.TargetCreatureOrPlayer;
|
||||||
public class AssaultBattery extends SplitCard<AssaultBattery> {
|
public class AssaultBattery extends SplitCard<AssaultBattery> {
|
||||||
|
|
||||||
public AssaultBattery(UUID ownerId) {
|
public AssaultBattery(UUID ownerId) {
|
||||||
super(ownerId, 295, "Assault - Battery", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{R}{3}{G}");
|
super(ownerId, 295, "Assault", "Battery", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{R}", "{3}{G}");
|
||||||
this.expansionSetCode = "INV";
|
this.expansionSetCode = "INV";
|
||||||
|
|
||||||
this.color.setRed(true);
|
this.color.setRed(true);
|
||||||
this.color.setGreen(true);
|
this.color.setGreen(true);
|
||||||
|
|
||||||
// Assault
|
// Assault
|
||||||
Card leftHalfCard = this.createLeftHalfCard("Assault", "{R}");
|
|
||||||
// Assault deals 2 damage to target creature or player.
|
// Assault deals 2 damage to target creature or player.
|
||||||
|
getLeftHalfCard().getColor().setRed(true);
|
||||||
Effect effect = new DamageTargetEffect(2);
|
Effect effect = new DamageTargetEffect(2);
|
||||||
effect.setText("Assault deals 2 damage to target creature or player");
|
effect.setText("Assault deals 2 damage to target creature or player");
|
||||||
leftHalfCard.getSpellAbility().addEffect(effect);
|
getLeftHalfCard().getSpellAbility().addEffect(effect);
|
||||||
leftHalfCard.getSpellAbility().addTarget(new TargetCreatureOrPlayer(true));
|
getLeftHalfCard().getSpellAbility().addTarget(new TargetCreatureOrPlayer(true));
|
||||||
|
|
||||||
// Battery
|
// Battery
|
||||||
Card rightHalfCard = this.createRightHalfCard("Battery", "{3}{G}");
|
|
||||||
// Put a 3/3 green Elephant creature token onto the battlefield.
|
// Put a 3/3 green Elephant creature token onto the battlefield.
|
||||||
rightHalfCard.getSpellAbility().addEffect(new CreateTokenEffect(new ElephantToken()));
|
getRightHalfCard().getColor().setGreen(true);
|
||||||
|
getRightHalfCard().getSpellAbility().addEffect(new CreateTokenEffect(new ElephantToken()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue