foul-magics/Mage/src/main/java/mage/abilities/keyword/CompanionCondition.java
Evan Kranzler 8494e98693
Implemented Yorion, Sky Nomad (#6407)
* Implemented Yorion, Sky Nomad

* Implemented Yorion, Sky Nomad (but for real this time)

* updated game creation to use the correct deck size for limited
2020-04-16 08:10:18 -04:00

24 lines
528 B
Java

package mage.abilities.keyword;
import mage.cards.Card;
import java.io.Serializable;
import java.util.Set;
/*
* @author emerald000
*/
public interface CompanionCondition extends Serializable {
/**
* @return The rule to get added to the card text. (Everything after the dash)
*/
String getRule();
/**
* @param deck The set of cards to check.
* @param startingSize
* @return Whether the companion is valid for that deck.
*/
boolean isLegal(Set<Card> deck, int startingSize);
}