mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
remove useless .toString()
This commit is contained in:
parent
e3d7c08311
commit
b1cc464d98
7 changed files with 7 additions and 7 deletions
|
@ -104,7 +104,7 @@ public class ReturnToHandTargetEffect extends OneShotEffect {
|
|||
if (!target.getTargetName().startsWith("another")) {
|
||||
sb.append("target ");
|
||||
}
|
||||
sb.append(target.getTargetName()).append(" to its owner's hand").toString();
|
||||
sb.append(target.getTargetName()).append(" to its owner's hand");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ public class CantBeBlockedByOneAllEffect extends ContinuousEffectImpl {
|
|||
if (duration.equals(Duration.EndOfTurn)) {
|
||||
sb.append("this turn ");
|
||||
}
|
||||
sb.append("except by ").append(CardUtil.numberToText(amount)).append(" or more creatures").toString();
|
||||
sb.append("except by ").append(CardUtil.numberToText(amount)).append(" or more creatures");
|
||||
staticText = sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ public class DiscardCardYouChooseTargetEffect extends OneShotEffect {
|
|||
sb.append(" of them.");
|
||||
}
|
||||
|
||||
sb.append(" That player discards ").append(discardMultipleCards ? "those cards" : "that card").toString();
|
||||
sb.append(" That player discards ").append(discardMultipleCards ? "those cards" : "that card");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public class EquipAbility extends ActivatedAbilityImpl {
|
|||
@Override
|
||||
public String getRule() {
|
||||
StringBuilder sb = new StringBuilder("Equip ").append(costs.getText()).append(manaCosts.getText());
|
||||
sb.append(" (").append(manaCosts.getText()).append(": <i>Attach to target creature you control. Equip only as a sorcery.)</i>").toString();
|
||||
sb.append(" (").append(manaCosts.getText()).append(": <i>Attach to target creature you control. Equip only as a sorcery.)</i>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ public class OutlastAbility extends ActivatedAbilityImpl {
|
|||
@Override
|
||||
public String getRule() {
|
||||
StringBuilder sb = new StringBuilder("Outlast ").append(manaCosts.getText());
|
||||
sb.append(" <i>(").append(getManaCosts().getText()).append(", ").append(getCosts().getText()).append(": Put a +1/+1 counter on this creature. Outlast only as a sorcery.)</i>").toString();
|
||||
sb.append(" <i>(").append(getManaCosts().getText()).append(", ").append(getCosts().getText()).append(": Put a +1/+1 counter on this creature. Outlast only as a sorcery.)</i>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ class BecomesRenownedSourceEffect extends OneShotEffect {
|
|||
sb.append(renownValue == Integer.MAX_VALUE ? "X" : renownValue)
|
||||
.append(". <i>(When this creature deals combat damage to a player, if it isn't renowned, put ")
|
||||
.append(renownValue == Integer.MAX_VALUE ? "X" : CardUtil.numberToText(renownValue, "a"))
|
||||
.append(" +1/+1 counter on it and it becomes renowned.)</i>").toString();
|
||||
.append(" +1/+1 counter on it and it becomes renowned.)</i>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -1489,7 +1489,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
StringBuilder sb = new StringBuilder(message).append(" to untap").append(" (").append(Math.min(leftForUntap.size(), numberToUntap)).append(" in total");
|
||||
MageObject effectSource = game.getObject(ability.getSourceId());
|
||||
if (effectSource != null) {
|
||||
sb.append(" from ").append(effectSource.getLogName()).toString();
|
||||
sb.append(" from ").append(effectSource.getLogName());
|
||||
}
|
||||
sb.append(")");
|
||||
filter.setMessage(sb.toString());
|
||||
|
|
Loading…
Reference in a new issue