mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
fixed silver bordered cards being legal in various formats
This commit is contained in:
parent
253c580639
commit
baef4114d2
10 changed files with 26 additions and 35 deletions
|
|
@ -2,22 +2,21 @@
|
|||
package mage.cards;
|
||||
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.keyword.PartnerWithAbility;
|
||||
import mage.cards.repository.CardCriteria;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.abilities.Ability;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.SetType;
|
||||
import mage.util.CardUtil;
|
||||
import mage.util.RandomUtil;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import mage.abilities.keyword.PartnerWithAbility;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
|
|
@ -610,6 +609,11 @@ public abstract class ExpansionSet implements Serializable {
|
|||
return setType == SetType.CUSTOM_SET;
|
||||
}
|
||||
|
||||
public boolean isEternalLegal() {
|
||||
return setType != SetType.CUSTOM_SET
|
||||
&& setType != SetType.JOKESET;
|
||||
}
|
||||
|
||||
public void removeSavedCards() {
|
||||
savedCards.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue