mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[WHO] Implement Clara Oswald
This commit is contained in:
parent
a49704296c
commit
09dbdccfb2
3 changed files with 95 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue