Modified ChoiceLandType to use CardRepository

-ChoiceLandType now generates the land types list using
CardRepository.getLandTypes() instead of using a statically typed list.
This commit is contained in:
Daniele Rosolen 2016-03-19 14:37:59 +01:00
parent d4be72e396
commit 4971c7d5fe

View file

@ -28,6 +28,8 @@
package mage.choices; package mage.choices;
import mage.cards.repository.CardRepository;
/** /**
* *
* @author tre3qwerty * @author tre3qwerty
@ -36,19 +38,7 @@ public class ChoiceLandType extends ChoiceImpl {
public ChoiceLandType() { public ChoiceLandType() {
super(true); super(true);
this.choices.add("Forest"); this.setChoices(CardRepository.instance.getLandTypes());
this.choices.add("Island");
this.choices.add("Mountain");
this.choices.add("Plains");
this.choices.add("Swamp");
this.choices.add("Desert");
this.choices.add("Gate");
this.choices.add("Lair");
this.choices.add("Locus");
this.choices.add("Urza's");
this.choices.add("Mine");
this.choices.add("Power-Plant");
this.choices.add("Tower");
this.message = "Choose a land type"; this.message = "Choose a land type";
} }