mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
equals "" should be replaced with isEmpty
This commit is contained in:
parent
3600d03e2c
commit
ad7d3c8078
6 changed files with 7 additions and 7 deletions
|
|
@ -135,12 +135,12 @@ public class BecomesCreatureAllEffect extends ContinuousEffectImpl {
|
|||
@Override
|
||||
public String getText(Mode mode) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!"".equals(duration.toString())) {
|
||||
if (duration.toString() != null && !duration.toString().isEmpty()) {
|
||||
sb.append(duration.toString()).append(", ");
|
||||
}
|
||||
sb.append("all ");
|
||||
sb.append(filter.getMessage());
|
||||
if ("".equals(duration.toString())) {
|
||||
if (duration.toString() != null && duration.toString().isEmpty()) {
|
||||
sb.append(" are ");
|
||||
} else {
|
||||
sb.append(" become ");
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements
|
|||
}
|
||||
}
|
||||
}
|
||||
if ("".equals(type) || type == null && permanent.getCardType().contains(CardType.LAND)) {
|
||||
if (type != null && type.isEmpty() || type == null && permanent.getCardType().contains(CardType.LAND)) {
|
||||
permanent.getSubtype(game).retainAll(CardRepository.instance.getLandTypes());
|
||||
}
|
||||
if (!token.getSubtype(game).isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue