diff --git a/Mage.Sets/src/mage/sets/innistrad/CivilizedScholar.java b/Mage.Sets/src/mage/sets/innistrad/CivilizedScholar.java index b06b0caf6b..ba995b3dc4 100644 --- a/Mage.Sets/src/mage/sets/innistrad/CivilizedScholar.java +++ b/Mage.Sets/src/mage/sets/innistrad/CivilizedScholar.java @@ -64,7 +64,7 @@ public class CivilizedScholar extends CardImpl { this.toughness = new MageInt(1); // {tap}: Draw a card, then discard a card. If a creature card is discarded this way, untap Civilized Scholar, then transform it. - this.addAbility(new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new DrawDiscardControllerEffect(), new TapSourceCost())); + this.addAbility(new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CivilizedScholarEffect(), new TapSourceCost())); this.addAbility(new TransformAbility()); this.addWatcher(new HomicidalBrute.HomicidalBruteWatcher()); @@ -80,20 +80,20 @@ public class CivilizedScholar extends CardImpl { } } -class DrawDiscardControllerEffect extends OneShotEffect { +class CivilizedScholarEffect extends OneShotEffect { - public DrawDiscardControllerEffect() { + public CivilizedScholarEffect() { super(Constants.Outcome.DrawCard); staticText = "Draw a card, then discard a card"; } - public DrawDiscardControllerEffect(final DrawDiscardControllerEffect effect) { + public CivilizedScholarEffect(final CivilizedScholarEffect effect) { super(effect); } @Override - public DrawDiscardControllerEffect copy() { - return new DrawDiscardControllerEffect(this); + public CivilizedScholarEffect copy() { + return new CivilizedScholarEffect(this); } @Override @@ -120,4 +120,3 @@ class DrawDiscardControllerEffect extends OneShotEffect { // Draw three cards, then discard a card. this.getSpellAbility().addEffect(new DrawCardControllerEffect(3)); - this.getSpellAbility().addEffect(new DiscardSourceEffect(1)); + this.getSpellAbility().addEffect(new DiscardControllerEffect(1)); } public Sift(final Sift card) { diff --git a/Mage/src/mage/abilities/effects/common/DiscardSourceEffect.java b/Mage/src/mage/abilities/effects/common/DiscardControllerEffect.java similarity index 89% rename from Mage/src/mage/abilities/effects/common/DiscardSourceEffect.java rename to Mage/src/mage/abilities/effects/common/DiscardControllerEffect.java index 9caa09ef16..f6604b018a 100644 --- a/Mage/src/mage/abilities/effects/common/DiscardSourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/DiscardControllerEffect.java @@ -39,28 +39,28 @@ import mage.players.Player; * * @author BetaSteward_at_googlemail.com */ -public class DiscardSourceEffect extends OneShotEffect { +public class DiscardControllerEffect extends OneShotEffect { protected DynamicValue amount; - public DiscardSourceEffect(DynamicValue amount) { + public DiscardControllerEffect(DynamicValue amount) { super(Outcome.Discard); this.amount = amount; setText(); } - public DiscardSourceEffect(int amount) { + public DiscardControllerEffect(int amount) { this(new StaticValue(amount)); } - public DiscardSourceEffect(final DiscardSourceEffect effect) { + public DiscardControllerEffect(final DiscardControllerEffect effect) { super(effect); this.amount = effect.amount.clone(); } @Override - public DiscardSourceEffect copy() { - return new DiscardSourceEffect(this); + public DiscardControllerEffect copy() { + return new DiscardControllerEffect(this); } @Override