Refactor LookLibraryAndPickControllerEffect (#8841)

This commit is contained in:
Alex W. Jackson 2022-04-16 00:32:24 -04:00 committed by GitHub
parent 7db8dd11b4
commit dc7dcec39a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
195 changed files with 1463 additions and 3526 deletions

View file

@ -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);
}
}