improve target naming for Getaway Glamer

This commit is contained in:
Susucre 2024-06-09 18:05:01 +02:00
parent 70f39341c0
commit 86fa92788e
3 changed files with 7 additions and 4 deletions

View file

@ -40,12 +40,14 @@ public final class GetawayGlamer extends CardImpl {
// + {1} -- Exile target nontoken creature. Return it to the battlefield under its owner's control at the beginning of the next end step.
this.getSpellAbility().addEffect(new ExileReturnBattlefieldNextEndStepTargetEffect().withTextThatCard(false));
this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
this.getSpellAbility().addTarget(
new TargetCreaturePermanent(filter).setTargetName("a nontoken creature to exile")
);
this.getSpellAbility().withFirstModeCost(new GenericManaCost(1));
// + {2} -- Destroy target creature if no other creature has greater power.
this.getSpellAbility().addMode(new Mode(new GetawayGlamerEffect())
.addTarget(new TargetCreaturePermanent())
.addTarget(new TargetCreaturePermanent().setTargetName("a creature (to destroy if no other creature has greater power)"))
.withCost(new GenericManaCost(2)));
}

View file

@ -108,7 +108,7 @@ public interface Target extends Serializable {
*/
String getTargetName();
void setTargetName(String name);
Target setTargetName(String name);
String getTargetedName(Game game);

View file

@ -177,8 +177,9 @@ public abstract class TargetImpl implements Target {
}
@Override
public void setTargetName(String name) {
public TargetImpl setTargetName(String name) {
this.targetName = name;
return this;
}
@Override