mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[MOM] Implement Overgrown Pest
This commit is contained in:
parent
4c4a7fc4a6
commit
e984d2a901
3 changed files with 76 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
package mage.filter.predicate.card;
|
||||
|
||||
import mage.cards.Card;
|
||||
import mage.cards.ModalDoubleFacesCard;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum DoubleFacedCardPredicate implements Predicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Card input, Game game) {
|
||||
return input instanceof ModalDoubleFacesCard || input.getSecondCardFace() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Double-Faced";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue