Fixed toLowerCase usage

This commit is contained in:
Oleg Agafonov 2021-02-02 19:38:54 +04:00
parent b6f6bac5e0
commit 10ac8ab86f
4 changed files with 7 additions and 4 deletions

View file

@ -17,6 +17,7 @@ import mage.game.Game;
import mage.players.Player;
import java.util.Arrays;
import java.util.Locale;
import java.util.UUID;
import java.util.stream.Collectors;
@ -73,7 +74,7 @@ class CreepingRenaissanceEffect extends OneShotEffect {
if (chosenType == null) {
return false;
}
FilterCard filter = new FilterCard(chosenType.toString().toLowerCase() + " card");
FilterCard filter = new FilterCard(chosenType.toString().toLowerCase(Locale.ENGLISH) + " card");
filter.add(chosenType.getPredicate());
return controller.moveCards(controller.getGraveyard().getCards(filter, source.getSourceId(), controller.getId(), game), Zone.HAND, source, game);
}

View file

@ -7,6 +7,8 @@ import mage.abilities.condition.Condition;
import mage.constants.TurnPhase;
import mage.game.Game;
import java.util.Locale;
/**
* @author LevelX2
*/
@ -25,7 +27,7 @@ public class IsPhaseCondition implements Condition {
@Override
public String toString() {
return new StringBuilder("during ").append(turnPhase).toString().toLowerCase();
return new StringBuilder("during ").append(turnPhase).toString().toLowerCase(Locale.ENGLISH);
}
}

View file

@ -63,7 +63,7 @@ public class CastOnlyDuringPhaseStepSourceEffect extends ContinuousRuleModifying
private String setText() {
StringBuilder sb = new StringBuilder("cast this spell only during ");
if (turnPhase != null) {
sb.append(turnPhase.toString().toLowerCase());
sb.append(turnPhase.toString().toLowerCase(Locale.ENGLISH));
}
if (phaseStep != null) {
sb.append("the ").append(phaseStep.getStepText());

View file

@ -120,7 +120,7 @@ public class CardInfo {
public CardInfo(Card card) {
this.name = card.getName();
this.lower_name = name.toLowerCase();
this.lower_name = name.toLowerCase(Locale.ENGLISH);
this.cardNumber = card.getCardNumber();
this.setCode = card.getExpansionSetCode();
this.className = card.getClass().getCanonicalName();