mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[IKO] Gyruda, Doom of Depths - fixed wrong companion ability;
This commit is contained in:
parent
950ed8bc51
commit
d366da6f6b
1 changed files with 3 additions and 4 deletions
|
@ -36,7 +36,7 @@ public final class GyrudaDoomOfDepths extends CardImpl {
|
|||
this.toughness = new MageInt(6);
|
||||
|
||||
// Companion — Your starting deck contains only cards with even converted mana costs.
|
||||
this.addAbility(new CompanionAbility(OboshThePreypiercerCompanionCondition.instance));
|
||||
this.addAbility(new CompanionAbility(GyrudaDoomOfDepthsCompanionCondition.instance));
|
||||
|
||||
// When Gyruda, Doom of Depths enters the battlefield, each player puts the top four cards of the library into their graveyard. Put a creature card with an even converted mana cost from among those cards onto the battlefield under your control.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new GyrudaDoomOfDepthsEffect()));
|
||||
|
@ -52,19 +52,18 @@ public final class GyrudaDoomOfDepths extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum OboshThePreypiercerCompanionCondition implements CompanionCondition {
|
||||
enum GyrudaDoomOfDepthsCompanionCondition implements CompanionCondition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Your starting deck contains only cards with odd converted mana costs and land cards.";
|
||||
return "Your starting deck contains only cards with even converted mana costs.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLegal(Set<Card> deck, int startingSize) {
|
||||
return deck
|
||||
.stream()
|
||||
.filter(card -> !card.isLand())
|
||||
.mapToInt(MageObject::getConvertedManaCost)
|
||||
.map(i -> i % 2)
|
||||
.allMatch(i -> i == 0);
|
||||
|
|
Loading…
Reference in a new issue