mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
Reffactoring
This commit is contained in:
parent
f1140eb2fb
commit
c66fb996b8
3 changed files with 14 additions and 15 deletions
|
|
@ -39,28 +39,28 @@ import mage.players.Player;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DiscardSourceEffect extends OneShotEffect<DiscardSourceEffect> {
|
||||
public class DiscardControllerEffect extends OneShotEffect<DiscardControllerEffect> {
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue