mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
updated companion conditions
This commit is contained in:
parent
8494e98693
commit
d26b00ab17
4 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue