mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
Fixed toLowerCase usage
This commit is contained in:
parent
b6f6bac5e0
commit
10ac8ab86f
4 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue