forked from External/mage
Refactor LookLibraryAndPickControllerEffect (#8841)
This commit is contained in:
parent
7db8dd11b4
commit
dc7dcec39a
195 changed files with 1463 additions and 3526 deletions
|
|
@ -0,0 +1,30 @@
|
|||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.filter.FilterCard;
|
||||
|
||||
/**
|
||||
* @author awjackson
|
||||
*/
|
||||
public class RevealLibraryPickControllerEffect extends LookLibraryAndPickControllerEffect {
|
||||
|
||||
public RevealLibraryPickControllerEffect(int numberOfCards, int numberToPick, FilterCard filter,
|
||||
PutCards putPickedCards, PutCards putLookedCards) {
|
||||
this(numberOfCards, numberToPick, filter, putPickedCards, putLookedCards, true);
|
||||
}
|
||||
|
||||
public RevealLibraryPickControllerEffect(int numberOfCards, int numberToPick, FilterCard filter,
|
||||
PutCards putPickedCards, PutCards putLookedCards, boolean optional) {
|
||||
super(numberOfCards, numberToPick, filter, putPickedCards, putLookedCards, optional);
|
||||
this.revealCards = true;
|
||||
this.revealPickedCards = false;
|
||||
}
|
||||
|
||||
public RevealLibraryPickControllerEffect(final LookLibraryAndPickControllerEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RevealLibraryPickControllerEffect copy() {
|
||||
return new RevealLibraryPickControllerEffect(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue