updated companion conditions

This commit is contained in:
Evan Kranzler 2020-04-16 08:14:15 -04:00
parent 8494e98693
commit d26b00ab17
4 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ enum OboshThePreypiercerCompanionCondition implements CompanionCondition {
}
@Override
public boolean isLegal(Set<Card> deck) {
public boolean isLegal(Set<Card> deck, int startingSize) {
return deck
.stream()
.filter(card -> !card.isLand())

View file

@ -64,7 +64,7 @@ enum JeganthaTheWellspringCompanionCondition implements CompanionCondition {
}
@Override
public boolean isLegal(Set<Card> deck) {
public boolean isLegal(Set<Card> deck, int startingSize) {
return deck.stream().allMatch(JeganthaTheWellspringCompanionCondition::checkCard);
}

View file

@ -72,7 +72,7 @@ enum LurrusOfTheDreamDenCompanionCondition implements CompanionCondition {
}
@Override
public boolean isLegal(Set<Card> deck) {
public boolean isLegal(Set<Card> deck, int startingSize) {
return deck.stream()
.filter(MageObject::isPermanent)
.mapToInt(MageObject::getConvertedManaCost)

View file

@ -72,7 +72,7 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
}
@Override
public boolean isLegal(Set<Card> deck) {
public boolean isLegal(Set<Card> deck, int startingSize) {
return deck
.stream()
.filter(MageObject::isPermanent)