From 4971c7d5fe2de4a6c2a3e5ecab0873fbeae975dd Mon Sep 17 00:00:00 2001 From: Daniele Rosolen Date: Sat, 19 Mar 2016 14:37:59 +0100 Subject: [PATCH] Modified ChoiceLandType to use CardRepository -ChoiceLandType now generates the land types list using CardRepository.getLandTypes() instead of using a statically typed list. --- .../main/java/mage/choices/ChoiceLandType.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Mage/src/main/java/mage/choices/ChoiceLandType.java b/Mage/src/main/java/mage/choices/ChoiceLandType.java index 0f9e5c49f6..f9a3e74085 100644 --- a/Mage/src/main/java/mage/choices/ChoiceLandType.java +++ b/Mage/src/main/java/mage/choices/ChoiceLandType.java @@ -28,6 +28,8 @@ package mage.choices; +import mage.cards.repository.CardRepository; + /** * * @author tre3qwerty @@ -36,19 +38,7 @@ public class ChoiceLandType extends ChoiceImpl { public ChoiceLandType() { super(true); - this.choices.add("Forest"); - 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.setChoices(CardRepository.instance.getLandTypes()); this.message = "Choose a land type"; }