mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[KHM] KayaTheInexorableEmblem - Move choices to static
This commit is contained in:
parent
a1318663d6
commit
0a28963aa3
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,13 @@ public class KayaTheInexorableEmblem extends Emblem {
|
|||
class KayaTheInexorableEmblemEffect extends OneShotEffect {
|
||||
|
||||
private static final FilterOwnedCard filter = new FilterOwnedCard();
|
||||
private static final Set<String> choices = new LinkedHashSet<>();
|
||||
static {
|
||||
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||
filter.add(Predicates.not(CardType.LAND.getPredicate()));
|
||||
choices.add("Hand");
|
||||
choices.add("Graveyard");
|
||||
choices.add("Exile");
|
||||
}
|
||||
|
||||
public KayaTheInexorableEmblemEffect() {
|
||||
|
@ -62,10 +66,6 @@ class KayaTheInexorableEmblemEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
Set<String> choices = new LinkedHashSet<>();
|
||||
choices.add("Hand");
|
||||
choices.add("Graveyard");
|
||||
choices.add("Exile");
|
||||
Choice zoneChoice = new ChoiceImpl(true);
|
||||
zoneChoice.setMessage("Cast a legendary spell from hand, graveyard, or exile");
|
||||
zoneChoice.setChoices(choices);
|
||||
|
|
Loading…
Reference in a new issue