[WHO] Implement Clara Oswald

This commit is contained in:
theelk801 2023-10-10 15:17:45 -04:00
parent a49704296c
commit 09dbdccfb2
3 changed files with 95 additions and 6 deletions

View file

@ -1,6 +1,7 @@
package mage.abilities.common;
import mage.abilities.StaticAbility;
import mage.abilities.effects.common.InfoEffect;
import mage.cards.Card;
import mage.constants.Zone;
@ -10,7 +11,7 @@ import mage.constants.Zone;
public class CommanderChooseColorAbility extends StaticAbility {
public CommanderChooseColorAbility() {
super(Zone.ALL, null);
super(Zone.ALL, new InfoEffect("if {this} is your commander, choose a color before the game begins. {this} is the chosen color"));
}
private CommanderChooseColorAbility(final CommanderChooseColorAbility ability) {
@ -22,11 +23,6 @@ public class CommanderChooseColorAbility extends StaticAbility {
return new CommanderChooseColorAbility(this);
}
@Override
public String getRule() {
return "If {this} is your commander, choose a color before the game begins. {this} is the chosen color.";
}
public static boolean checkCard(Card card) {
return card.getAbilities().stream().anyMatch(CommanderChooseColorAbility.class::isInstance);
}