refactor: improve method name (related to 86fa9278)

This commit is contained in:
xenohedron 2024-06-13 00:40:07 -04:00
parent 723df8f53c
commit fdd244786b
31 changed files with 44 additions and 45 deletions

View file

@ -1989,7 +1989,7 @@ public class HumanPlayer extends PlayerImpl {
Permanent attacker = game.getPermanent(attackerId);
if (attacker != null) {
sb.append(" (").append(attacker.getName()).append(')');
target.setTargetName(sb.toString());
target.withTargetName(sb.toString());
}
}
if (chooseTarget(Outcome.Damage, target, null, game)) {
@ -2181,7 +2181,7 @@ public class HumanPlayer extends PlayerImpl {
Target target = new TargetAnyTarget();
target.withNotTarget(true);
if (singleTargetName != null) {
target.setTargetName(singleTargetName);
target.withTargetName(singleTargetName);
}
this.choose(Outcome.Damage, target, source, game);
if (targets.isEmpty() || targets.contains(target.getFirstTarget())) {