Update common effect class text generation (A-C) (#10651)

This commit is contained in:
xenohedron 2023-07-21 22:55:47 -04:00 committed by GitHub
parent 8fca717e57
commit 3886075dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 80 additions and 284 deletions

View file

@ -46,7 +46,7 @@ public class CreateTokenTargetEffect extends OneShotEffect {
this.attacking = attacking;
}
public CreateTokenTargetEffect(final CreateTokenTargetEffect effect) {
protected CreateTokenTargetEffect(final CreateTokenTargetEffect effect) {
super(effect);
this.amount = effect.amount;
this.token = effect.token.copy();
@ -73,13 +73,7 @@ public class CreateTokenTargetEffect extends OneShotEffect {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
StringBuilder sb = new StringBuilder();
if (mode.getTargets().isEmpty()) {
sb.append("that player");
} else {
sb.append("target ").append(mode.getTargets().get(0).getTargetName());
}
StringBuilder sb = new StringBuilder(getTargetPointer().describeTargets(mode.getTargets(), "that player"));
sb.append(" creates ");
if (amount.toString().equals("1")) {