forked from External/mage
some text fixes
This commit is contained in:
parent
17b7de4e87
commit
3baabe2534
28 changed files with 78 additions and 74 deletions
|
|
@ -25,7 +25,6 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -52,6 +51,7 @@ public class ExileAllEffect extends OneShotEffect {
|
|||
public ExileAllEffect(FilterPermanent filter) {
|
||||
this(filter, null, null);
|
||||
}
|
||||
|
||||
public ExileAllEffect(FilterPermanent filter, UUID exileId, String exileZone) {
|
||||
super(Outcome.Exile);
|
||||
this.filter = filter;
|
||||
|
|
@ -77,19 +77,18 @@ public class ExileAllEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
|
||||
for (Permanent permanent: permanents) {
|
||||
for (Permanent permanent : permanents) {
|
||||
controller.moveCardToExileWithInfo(permanent, exileId, exileZone, source.getSourceId(), game, Zone.BATTLEFIELD, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Exile all ").append(filter.getMessage());
|
||||
sb.append("exile all ").append(filter.getMessage());
|
||||
staticText = sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public class LookLibraryTopCardTargetPlayerEffect extends OneShotEffect {
|
|||
sb.append(CardUtil.numberToText(amount));
|
||||
sb.append(" cards ");
|
||||
} else {
|
||||
sb.append(" card ");
|
||||
sb.append("card ");
|
||||
}
|
||||
sb.append("of target player's library");
|
||||
if (putToGraveyard) {
|
||||
|
|
|
|||
|
|
@ -152,14 +152,20 @@ public class AddCountersSourceEffect extends OneShotEffect {
|
|||
private void setText() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("put ");
|
||||
boolean plural = true;
|
||||
if (counter.getCount() > 1) {
|
||||
sb.append(CardUtil.numberToText(counter.getCount())).append(' ');
|
||||
} else if (amount.toString().equals("X") && amount.getMessage().isEmpty()) {
|
||||
sb.append("X ");
|
||||
} else {
|
||||
sb.append("a ");
|
||||
plural = false;
|
||||
}
|
||||
sb.append(counter.getName().toLowerCase()).append(" counter on {this}");
|
||||
sb.append(counter.getName().toLowerCase()).append(" counter");
|
||||
if (plural) {
|
||||
sb.append('s');
|
||||
}
|
||||
sb.append(" on {this}");
|
||||
if (!amount.getMessage().isEmpty()) {
|
||||
sb.append(" for each ").append(amount.getMessage());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public class DiscardTargetEffect extends OneShotEffect {
|
|||
}
|
||||
sb.append(" discards ");
|
||||
if (amount.toString().equals("1")) {
|
||||
sb.append(" a card");
|
||||
sb.append("a card");
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(amount.toString())).append(" cards");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue