mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
refactored mill effect names
This commit is contained in:
parent
fe1281decb
commit
7008392a49
109 changed files with 237 additions and 237 deletions
|
|
@ -12,21 +12,21 @@ import java.util.LinkedHashSet;
|
|||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public class PutTopCardOfYourLibraryToGraveyardCost extends CostImpl {
|
||||
public class MillCardsCost extends CostImpl {
|
||||
|
||||
private final int numberOfCards;
|
||||
private final Set<Card> cardsMovedToGraveyard = new LinkedHashSet<>();
|
||||
|
||||
public PutTopCardOfYourLibraryToGraveyardCost() {
|
||||
public MillCardsCost() {
|
||||
this(1);
|
||||
}
|
||||
|
||||
public PutTopCardOfYourLibraryToGraveyardCost(int numberOfCards) {
|
||||
public MillCardsCost(int numberOfCards) {
|
||||
this.numberOfCards = numberOfCards;
|
||||
this.text = setText();
|
||||
}
|
||||
|
||||
private PutTopCardOfYourLibraryToGraveyardCost(final PutTopCardOfYourLibraryToGraveyardCost cost) {
|
||||
private MillCardsCost(final MillCardsCost cost) {
|
||||
super(cost);
|
||||
this.numberOfCards = cost.numberOfCards;
|
||||
this.cardsMovedToGraveyard.addAll(cost.getCardsMovedToGraveyard());
|
||||
|
|
@ -49,8 +49,8 @@ public class PutTopCardOfYourLibraryToGraveyardCost extends CostImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfYourLibraryToGraveyardCost copy() {
|
||||
return new PutTopCardOfYourLibraryToGraveyardCost(this);
|
||||
public MillCardsCost copy() {
|
||||
return new MillCardsCost(this);
|
||||
}
|
||||
|
||||
public Set<Card> getCardsMovedToGraveyard() {
|
||||
|
|
@ -11,24 +11,24 @@ import mage.util.CardUtil;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class PutTopCardOfLibraryIntoGraveControllerEffect extends OneShotEffect {
|
||||
public class MillCardsControllerEffect extends OneShotEffect {
|
||||
|
||||
private final int numberCards;
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect(int numberCards) {
|
||||
public MillCardsControllerEffect(int numberCards) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect(final PutTopCardOfLibraryIntoGraveControllerEffect effect) {
|
||||
public MillCardsControllerEffect(final MillCardsControllerEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfLibraryIntoGraveControllerEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveControllerEffect(this);
|
||||
public MillCardsControllerEffect copy() {
|
||||
return new MillCardsControllerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -15,31 +15,31 @@ import java.util.UUID;
|
|||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class PutTopCardOfLibraryIntoGraveEachPlayerEffect extends OneShotEffect {
|
||||
public class MillCardsEachPlayerEffect extends OneShotEffect {
|
||||
|
||||
private final DynamicValue numberCards;
|
||||
private final TargetController targetController;
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect(int numberCards, TargetController targetController) {
|
||||
public MillCardsEachPlayerEffect(int numberCards, TargetController targetController) {
|
||||
this(StaticValue.get(numberCards), targetController);
|
||||
}
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect(DynamicValue numberCards, TargetController targetController) {
|
||||
public MillCardsEachPlayerEffect(DynamicValue numberCards, TargetController targetController) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.targetController = targetController;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
private PutTopCardOfLibraryIntoGraveEachPlayerEffect(final PutTopCardOfLibraryIntoGraveEachPlayerEffect effect) {
|
||||
private MillCardsEachPlayerEffect(final MillCardsEachPlayerEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
this.targetController = effect.targetController;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfLibraryIntoGraveEachPlayerEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveEachPlayerEffect(this);
|
||||
public MillCardsEachPlayerEffect copy() {
|
||||
return new MillCardsEachPlayerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -12,28 +12,28 @@ import mage.util.CardUtil;
|
|||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class PutTopCardOfLibraryIntoGraveTargetEffect extends OneShotEffect {
|
||||
public class MillCardsTargetEffect extends OneShotEffect {
|
||||
|
||||
private DynamicValue numberCards;
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(int numberCards) {
|
||||
public MillCardsTargetEffect(int numberCards) {
|
||||
this(StaticValue.get(numberCards));
|
||||
}
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(DynamicValue numberCards) {
|
||||
public MillCardsTargetEffect(DynamicValue numberCards) {
|
||||
super(Outcome.Discard);
|
||||
this.numberCards = numberCards;
|
||||
this.staticText = setText();
|
||||
}
|
||||
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect(final PutTopCardOfLibraryIntoGraveTargetEffect effect) {
|
||||
public MillCardsTargetEffect(final MillCardsTargetEffect effect) {
|
||||
super(effect);
|
||||
this.numberCards = effect.numberCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutTopCardOfLibraryIntoGraveTargetEffect copy() {
|
||||
return new PutTopCardOfLibraryIntoGraveTargetEffect(this);
|
||||
public MillCardsTargetEffect copy() {
|
||||
return new MillCardsTargetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -3,7 +3,7 @@ package mage.game.command.emblems;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.MillCardsTargetEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.game.command.Emblem;
|
||||
|
|
@ -17,7 +17,7 @@ public final class JaceTelepathUnboundEmblem extends Emblem {
|
|||
|
||||
public JaceTelepathUnboundEmblem() {
|
||||
this.setName("Emblem Jace");
|
||||
Effect effect = new PutTopCardOfLibraryIntoGraveTargetEffect(5);
|
||||
Effect effect = new MillCardsTargetEffect(5);
|
||||
effect.setText("target opponent mills five cards");
|
||||
Ability ability = new SpellCastControllerTriggeredAbility(Zone.COMMAND, effect, new FilterSpell("a spell"), false, false);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import mage.abilities.condition.common.MainPhaseStackEmptyCondition;
|
|||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.PutLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect;
|
||||
import mage.abilities.effects.common.MillCardsTargetEffect;
|
||||
import mage.abilities.effects.common.RollPlanarDieEffect;
|
||||
import mage.abilities.effects.common.cost.PlanarDieRollCostIncreasingEffect;
|
||||
import mage.constants.Planes;
|
||||
|
|
@ -36,7 +36,7 @@ public class LetheLakePlane extends Plane {
|
|||
this.getAbilities().add(ability);
|
||||
|
||||
// Active player can roll the planar die: Whenever you roll {CHAOS}, target player puts the top ten cards of their library into their graveyard
|
||||
Effect chaosEffect = new PutTopCardOfLibraryIntoGraveTargetEffect(10);
|
||||
Effect chaosEffect = new MillCardsTargetEffect(10);
|
||||
Target chaosTarget = new TargetPlayer();
|
||||
|
||||
List<Effect> chaosEffects = new ArrayList<Effect>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue