mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Some name refactoring to PutTopCardOfLibararyIntoGraveEffects.
This commit is contained in:
parent
f9607bb7ed
commit
1961ec97e0
16 changed files with 42 additions and 42 deletions
|
@ -34,7 +34,7 @@ import mage.abilities.common.SimpleStaticAbility;
|
|||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.continious.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -68,7 +68,7 @@ public class EvanescentIntellect extends CardImpl<EvanescentIntellect> {
|
|||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
// Enchanted creature has "{1}{U}, {T}: Target player puts the top three cards of his or her library into his or her graveyard."
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(3), new ManaCostsImpl("{1}{U}"));
|
||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveTargetEffect(3), new ManaCostsImpl("{1}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetPlayer(true));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.AURA, Duration.WhileOnBattlefield)));
|
||||
|
|
|
@ -36,7 +36,7 @@ import mage.abilities.costs.common.TapSourceCost;
|
|||
import mage.abilities.dynamicvalue.common.DevotionCount;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentToughnessValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.continious.GainAbilityControlledEffect;
|
||||
import mage.abilities.effects.common.continious.LoseCreatureTypeSourceEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
|
@ -73,7 +73,7 @@ public class PhenaxGodOfDeception extends CardImpl<PhenaxGodOfDeception> {
|
|||
effect.setText("As long as your devotion to blue and black is less than seven, Phenax isn't a creature");
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
|
||||
// Creatures you control have "{T}: Target player puts the top X cards of his or her library into his or her graveyard, where X is this creature's toughness."
|
||||
effect = new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(SourcePermanentToughnessValue.getInstance());
|
||||
effect = new PutTopCardOfLibraryIntoGraveTargetEffect(SourcePermanentToughnessValue.getInstance());
|
||||
effect.setText("Target player puts the top X cards of his or her library into his or her graveyard, where X is this creature's toughness");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
|
||||
ability.addTarget(new TargetPlayer(true));
|
||||
|
|
|
@ -32,7 +32,7 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DiscardEachPlayerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveEachPlayerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveEachPlayerEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.InspiredAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -61,7 +61,7 @@ public class SirenOfTheSilentSong extends CardImpl<SirenOfTheSilentSong> {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
// <i>Inspired</i> - Whenever Siren of the Silent Song becomes untapped, each opponent discards a card, then puts the top card of his or her library into his or her graveyard.
|
||||
Ability ability = new InspiredAbility(new DiscardEachPlayerEffect(TargetController.OPPONENT));
|
||||
Effect effect = new PutTopCardOfYourLibraryIntoGraveEachPlayerEffect(1, TargetController.OPPONENT);
|
||||
Effect effect = new PutTopCardOfLibraryIntoGraveEachPlayerEffect(1, TargetController.OPPONENT);
|
||||
effect.setText(", then puts the top card of his or her library into his or her graveyard");
|
||||
ability.addEffect(effect);
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -40,7 +40,7 @@ import mage.abilities.common.AsEntersBattlefieldAbility;
|
|||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.continious.SetPowerToughnessSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.game.Game;
|
||||
|
@ -152,7 +152,7 @@ class CardsInTargetOpponentsGraveyardCount implements DynamicValue {
|
|||
class SewerNemesisTriggeredAbility extends TriggeredAbilityImpl<SewerNemesisTriggeredAbility> {
|
||||
|
||||
public SewerNemesisTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(1), false);
|
||||
super(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveTargetEffect(1), false);
|
||||
}
|
||||
|
||||
public SewerNemesisTriggeredAbility(final SewerNemesisTriggeredAbility ability) {
|
||||
|
|
|
@ -33,7 +33,7 @@ import mage.abilities.costs.Cost;
|
|||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
|
@ -101,7 +101,7 @@ class SharedTraumaEffect extends OneShotEffect<SharedTraumaEffect> {
|
|||
}
|
||||
if (xSum > 0) {
|
||||
for(UUID playerId : controller.getInRange()) {
|
||||
Effect effect = new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(xSum);
|
||||
Effect effect = new PutTopCardOfLibraryIntoGraveTargetEffect(xSum);
|
||||
effect.setTargetPointer(new FixedTarget(playerId));
|
||||
effect.apply(game, source);
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ import mage.constants.CardType;
|
|||
import mage.constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ public class ScreechingSkaab extends CardImpl<ScreechingSkaab> {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Screeching Skaab enters the battlefield, put the top two cards of your library into your graveyard.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfYourLibraryIntoGraveControllerEffect(2)));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(2)));
|
||||
}
|
||||
|
||||
public ScreechingSkaab(final ScreechingSkaab card) {
|
||||
|
|
|
@ -37,7 +37,7 @@ import mage.constants.Zone;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.continious.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -71,7 +71,7 @@ public class BreakingEntering extends SplitCard<BreakingEntering> {
|
|||
// Target player puts the top eight cards of his or her library into his or her graveyard.
|
||||
getLeftHalfCard().getColor().setBlue(true);
|
||||
getLeftHalfCard().getColor().setBlack(true);
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(8));
|
||||
getLeftHalfCard().getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveTargetEffect(8));
|
||||
getLeftHalfCard().getSpellAbility().addTarget(new TargetPlayer(true));
|
||||
|
||||
// Entering
|
||||
|
|
|
@ -37,7 +37,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.TargetController;
|
||||
|
@ -60,7 +60,7 @@ public class DeadbridgeChant extends CardImpl<DeadbridgeChant> {
|
|||
this.color.setGreen(true);
|
||||
|
||||
// When Deadbridge Chant enters the battlefield, put the top ten cards of your library into your graveyard.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfYourLibraryIntoGraveControllerEffect(10)));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(10)));
|
||||
|
||||
// At the beginning of your upkeep, choose a card at random in your graveyard. If it's a creature card, put it onto the battlefield. Otherwise, put it into your hand.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DeadbridgeChantEffect(), TargetController.YOU, false));
|
||||
|
|
|
@ -35,7 +35,7 @@ import mage.abilities.dynamicvalue.DynamicValue;
|
|||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.continious.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterLandCard;
|
||||
|
@ -56,7 +56,7 @@ public class DrownInFilth extends CardImpl<DrownInFilth> {
|
|||
|
||||
// Choose target creature. Put the top four cards of your library into your graveyard, then that creature gets -1/-1 until end of turn for each land card in your graveyard.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
||||
Effect effect = new PutTopCardOfYourLibraryIntoGraveControllerEffect(4);
|
||||
Effect effect = new PutTopCardOfLibraryIntoGraveControllerEffect(4);
|
||||
effect.setText("Choose target creature. Put the top four cards of your library into your graveyard");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
DynamicValue landCards = new SignInversionDynamicValue(new CardsInControllerGraveyardCount(new FilterLandCard()));
|
||||
|
|
|
@ -37,7 +37,7 @@ import mage.abilities.common.EntersBattlefieldAllTriggeredAbility;
|
|||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.PutTopCardOfTargetPlayerLibraryIntoGraveEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.UntapSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterArtifactPermanent;
|
||||
|
@ -62,7 +62,7 @@ public class GrindingStation extends CardImpl<GrindingStation> {
|
|||
this.expansionSetCode = "5DN";
|
||||
|
||||
// {tap}, Sacrifice an artifact: Target player puts the top three cards of his or her library into his or her graveyard.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(3), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveTargetEffect(3), new TapSourceCost());
|
||||
ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
||||
ability.addTarget(new TargetPlayer(true));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -36,7 +36,7 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.game.Game;
|
||||
|
@ -59,7 +59,7 @@ public class ArmoredSkaab extends CardImpl<ArmoredSkaab> {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// When Armored Skaab enters the battlefield, put the top four cards of your library into your graveyard.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfYourLibraryIntoGraveControllerEffect(4)));
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(4)));
|
||||
}
|
||||
|
||||
public ArmoredSkaab(final ArmoredSkaab card) {
|
||||
|
|
|
@ -36,7 +36,7 @@ import mage.MageInt;
|
|||
import mage.abilities.common.OnEventTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.continious.SetPowerToughnessSourceEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -63,7 +63,7 @@ public class Splinterfright extends CardImpl<Splinterfright> {
|
|||
CardsInControllerGraveyardCount count = new CardsInControllerGraveyardCount(new FilterCreatureCard("creature cards"));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(count, Duration.EndOfGame)));
|
||||
// At the beginning of your upkeep, put the top two cards of your library into your graveyard.
|
||||
this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new PutTopCardOfYourLibraryIntoGraveControllerEffect(2), false));
|
||||
this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new PutTopCardOfLibraryIntoGraveControllerEffect(2), false));
|
||||
}
|
||||
|
||||
public Splinterfright(final Splinterfright card) {
|
||||
|
|
|
@ -39,7 +39,7 @@ import mage.abilities.costs.common.ExileFromGraveCost;
|
|||
import mage.abilities.decorator.ConditionalContinousEffect;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.common.ExileCardFromOwnGraveyardControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfYourLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.abilities.effects.common.continious.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continious.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
|
@ -71,7 +71,7 @@ public class Bloodcurdler extends CardImpl<Bloodcurdler> {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// At the beginning of your upkeep, put the top card of your library into your graveyard.
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new PutTopCardOfYourLibraryIntoGraveControllerEffect(1), TargetController.YOU, false));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new PutTopCardOfLibraryIntoGraveControllerEffect(1), TargetController.YOU, false));
|
||||
|
||||
Condition thresholdCondition = new CardsInControllerGraveCondition(7);
|
||||
// Threshold - As long as seven or more cards are in your graveyard, Bloodcurdler gets +1/+1 and has "At the beginning of your end step, exile two cards from your graveyard."
|
||||
|
|
|
@ -42,24 +42,24 @@ import mage.util.CardUtil;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PutTopCardOfYourLibraryIntoGraveControllerEffect extends OneShotEffect<PutTopCardOfYourLibraryIntoGraveControllerEffect> {
|
||||
public class PutTopCardOfLibraryIntoGraveControllerEffect extends OneShotEffect<PutTopCardOfLibraryIntoGraveControllerEffect> {
|
||||
|
||||
private final int numberCards;
|
||||
|
||||
public PutTopCardOfYourLibraryIntoGraveControllerEffect(int numberCards) {
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect(int numberCards) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public PutTopCardOfYourLibraryIntoGraveControllerEffect(final PutTopCardOfYourLibraryIntoGraveControllerEffect effect) {
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect(final PutTopCardOfLibraryIntoGraveControllerEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfYourLibraryIntoGraveControllerEffect copy() {
|
||||
return new PutTopCardOfYourLibraryIntoGraveControllerEffect(this);
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveControllerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
|
@ -44,27 +44,27 @@ import mage.util.CardUtil;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PutTopCardOfYourLibraryIntoGraveEachPlayerEffect extends OneShotEffect<PutTopCardOfYourLibraryIntoGraveEachPlayerEffect> {
|
||||
public class PutTopCardOfLibraryIntoGraveEachPlayerEffect extends OneShotEffect<PutTopCardOfLibraryIntoGraveEachPlayerEffect> {
|
||||
|
||||
private final int numberCards;
|
||||
private final TargetController targetController;
|
||||
|
||||
public PutTopCardOfYourLibraryIntoGraveEachPlayerEffect(int numberCards, TargetController targetController) {
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect(int numberCards, TargetController targetController) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.targetController = targetController;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public PutTopCardOfYourLibraryIntoGraveEachPlayerEffect(final PutTopCardOfYourLibraryIntoGraveEachPlayerEffect effect) {
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect(final PutTopCardOfLibraryIntoGraveEachPlayerEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
this.targetController = effect.targetController;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfYourLibraryIntoGraveEachPlayerEffect copy() {
|
||||
return new PutTopCardOfYourLibraryIntoGraveEachPlayerEffect(this);
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveEachPlayerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
|
@ -44,27 +44,27 @@ import mage.util.CardUtil;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PutTopCardOfTargetPlayerLibraryIntoGraveEffect extends OneShotEffect<PutTopCardOfTargetPlayerLibraryIntoGraveEffect> {
|
||||
public class PutTopCardOfLibraryIntoGraveTargetEffect extends OneShotEffect<PutTopCardOfLibraryIntoGraveTargetEffect> {
|
||||
|
||||
private DynamicValue numberCards;
|
||||
|
||||
public PutTopCardOfTargetPlayerLibraryIntoGraveEffect(int numberCards) {
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(int numberCards) {
|
||||
this(new StaticValue(numberCards));
|
||||
}
|
||||
public PutTopCardOfTargetPlayerLibraryIntoGraveEffect(DynamicValue numberCards) {
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(DynamicValue numberCards) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public PutTopCardOfTargetPlayerLibraryIntoGraveEffect(final PutTopCardOfTargetPlayerLibraryIntoGraveEffect effect) {
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(final PutTopCardOfLibraryIntoGraveTargetEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfTargetPlayerLibraryIntoGraveEffect copy() {
|
||||
return new PutTopCardOfTargetPlayerLibraryIntoGraveEffect(this);
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveTargetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
Loading…
Reference in a new issue