mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Tests: fixed NykthosShrineToNyx that broke dozens of other tests with mana choice
This commit is contained in:
parent
5d5c724565
commit
e87db19b7d
2 changed files with 11 additions and 11 deletions
|
@ -94,7 +94,7 @@ class NykthosShrineToNyxManaAbility extends ActivatedManaAbilityImpl {
|
||||||
public List<Mana> getNetMana(Game game) {
|
public List<Mana> getNetMana(Game game) {
|
||||||
netMana.clear();
|
netMana.clear();
|
||||||
if (game != null) {
|
if (game != null) {
|
||||||
for (String colorChoice : ChoiceColor.colorChoices) {
|
for (String colorChoice : ChoiceColor.getBaseColors()) {
|
||||||
netMana.add(((NykthosDynamicManaEffect) this.getEffects().get(0)).computeMana(colorChoice, game, this));
|
netMana.add(((NykthosDynamicManaEffect) this.getEffects().get(0)).computeMana(colorChoice, game, this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,19 +37,20 @@ import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com, JayDi85
|
||||||
*/
|
*/
|
||||||
public class ChoiceColor extends ChoiceImpl {
|
public class ChoiceColor extends ChoiceImpl {
|
||||||
|
|
||||||
//public static final Set<String> colorChoices = new HashSet<>(); // JayDi85: uncomment 1 of 2 to broke unit tests find wrong tests (?)
|
private static final ArrayList<String> colorChoices = getBaseColors();
|
||||||
public static final ArrayList<String> colorChoices = new ArrayList<>();
|
|
||||||
|
|
||||||
static {
|
public static ArrayList<String> getBaseColors(){
|
||||||
colorChoices.add("Green");
|
ArrayList<String> arr = new ArrayList<>();
|
||||||
colorChoices.add("Blue");
|
arr.add("Green");
|
||||||
colorChoices.add("Black");
|
arr.add("Blue");
|
||||||
colorChoices.add("Red");
|
arr.add("Black");
|
||||||
colorChoices.add("White");
|
arr.add("Red");
|
||||||
|
arr.add("White");
|
||||||
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChoiceColor() {
|
public ChoiceColor() {
|
||||||
|
@ -72,7 +73,6 @@ public class ChoiceColor extends ChoiceImpl {
|
||||||
super(required);
|
super(required);
|
||||||
|
|
||||||
this.choices.addAll(colorChoices);
|
this.choices.addAll(colorChoices);
|
||||||
//this.setChoices(colorChoices); // JayDi85: uncomment 2 of 2 to broke unit tests find wrong tests (?)
|
|
||||||
|
|
||||||
this.setMessage(chooseMessage);
|
this.setMessage(chooseMessage);
|
||||||
this.setSubMessage(chooseSubMessage);
|
this.setSubMessage(chooseSubMessage);
|
||||||
|
|
Loading…
Reference in a new issue