mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fixed toLowerCase usage
This commit is contained in:
parent
b6f6bac5e0
commit
10ac8ab86f
4 changed files with 7 additions and 4 deletions
|
@ -17,6 +17,7 @@ import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@ -73,7 +74,7 @@ class CreepingRenaissanceEffect extends OneShotEffect {
|
||||||
if (chosenType == null) {
|
if (chosenType == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
FilterCard filter = new FilterCard(chosenType.toString().toLowerCase() + " card");
|
FilterCard filter = new FilterCard(chosenType.toString().toLowerCase(Locale.ENGLISH) + " card");
|
||||||
filter.add(chosenType.getPredicate());
|
filter.add(chosenType.getPredicate());
|
||||||
return controller.moveCards(controller.getGraveyard().getCards(filter, source.getSourceId(), controller.getId(), game), Zone.HAND, source, game);
|
return controller.moveCards(controller.getGraveyard().getCards(filter, source.getSourceId(), controller.getId(), game), Zone.HAND, source, game);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@ import mage.abilities.condition.Condition;
|
||||||
import mage.constants.TurnPhase;
|
import mage.constants.TurnPhase;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
|
@ -25,7 +27,7 @@ public class IsPhaseCondition implements Condition {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringBuilder("during ").append(turnPhase).toString().toLowerCase();
|
return new StringBuilder("during ").append(turnPhase).toString().toLowerCase(Locale.ENGLISH);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class CastOnlyDuringPhaseStepSourceEffect extends ContinuousRuleModifying
|
||||||
private String setText() {
|
private String setText() {
|
||||||
StringBuilder sb = new StringBuilder("cast this spell only during ");
|
StringBuilder sb = new StringBuilder("cast this spell only during ");
|
||||||
if (turnPhase != null) {
|
if (turnPhase != null) {
|
||||||
sb.append(turnPhase.toString().toLowerCase());
|
sb.append(turnPhase.toString().toLowerCase(Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
if (phaseStep != null) {
|
if (phaseStep != null) {
|
||||||
sb.append("the ").append(phaseStep.getStepText());
|
sb.append("the ").append(phaseStep.getStepText());
|
||||||
|
|
|
@ -120,7 +120,7 @@ public class CardInfo {
|
||||||
|
|
||||||
public CardInfo(Card card) {
|
public CardInfo(Card card) {
|
||||||
this.name = card.getName();
|
this.name = card.getName();
|
||||||
this.lower_name = name.toLowerCase();
|
this.lower_name = name.toLowerCase(Locale.ENGLISH);
|
||||||
this.cardNumber = card.getCardNumber();
|
this.cardNumber = card.getCardNumber();
|
||||||
this.setCode = card.getExpansionSetCode();
|
this.setCode = card.getExpansionSetCode();
|
||||||
this.className = card.getClass().getCanonicalName();
|
this.className = card.getClass().getCanonicalName();
|
||||||
|
|
Loading…
Reference in a new issue