mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Renamed DrawCardController to DrawCardSourceController.
This commit is contained in:
parent
de2a8b66b6
commit
6bc5cf538b
108 changed files with 222 additions and 222 deletions
|
|
@ -41,28 +41,28 @@ import mage.util.CardUtil;
|
|||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DrawCardControllerEffect extends OneShotEffect<DrawCardControllerEffect> {
|
||||
public class DrawCardSourceControllerEffect extends OneShotEffect<DrawCardSourceControllerEffect> {
|
||||
|
||||
protected DynamicValue amount;
|
||||
|
||||
public DrawCardControllerEffect(int amount) {
|
||||
public DrawCardSourceControllerEffect(int amount) {
|
||||
this(new StaticValue(amount));
|
||||
}
|
||||
|
||||
public DrawCardControllerEffect(DynamicValue amount) {
|
||||
public DrawCardSourceControllerEffect(DynamicValue amount) {
|
||||
super(Outcome.DrawCard);
|
||||
this.amount = amount.copy();
|
||||
setText();
|
||||
}
|
||||
|
||||
public DrawCardControllerEffect(final DrawCardControllerEffect effect) {
|
||||
public DrawCardSourceControllerEffect(final DrawCardSourceControllerEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DrawCardControllerEffect copy() {
|
||||
return new DrawCardControllerEffect(this);
|
||||
public DrawCardSourceControllerEffect copy() {
|
||||
return new DrawCardSourceControllerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -33,7 +33,7 @@ import mage.abilities.ActivatedAbilityImpl;
|
|||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.common.DiscardSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.abilities.effects.common.DrawCardControllerEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
|
@ -49,7 +49,7 @@ public class CyclingAbility extends ActivatedAbilityImpl<CyclingAbility> {
|
|||
private final String text;
|
||||
|
||||
public CyclingAbility(Cost cost) {
|
||||
super(Zone.HAND, new DrawCardControllerEffect(1), cost);
|
||||
super(Zone.HAND, new DrawCardSourceControllerEffect(1), cost);
|
||||
this.addCost(new DiscardSourceCost());
|
||||
this.cost = cost;
|
||||
this.text = "Cycling";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue