foul-magics/Mage/src/main/java/mage/abilities/keyword/CompanionCondition.java
Oleg Agafonov 1664ee01cf Fixed miss copy code in Game object (lki, cards), removed unused code. Possible fixes:
* simulated games was able to change objects from another games (ConcurrentModificationException, related to d202278ccd, details in 3a6cdd2615);
* AI: fixed cards disappear in multiplayer games with computer (details in #6738);
2021-08-12 00:08:08 +04:00

26 lines
588 B
Java

package mage.abilities.keyword;
import mage.cards.Card;
import java.io.Serializable;
import java.util.Set;
/**
* Checking deck for companion legality
*
* @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 startingHandSize
* @return Whether the companion is valid for that deck.
*/
boolean isLegal(Set<Card> deck, int startingHandSize);
}