mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
improve target naming for Getaway Glamer
This commit is contained in:
parent
70f39341c0
commit
86fa92788e
3 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
// + {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().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));
|
this.getSpellAbility().withFirstModeCost(new GenericManaCost(1));
|
||||||
|
|
||||||
// + {2} -- Destroy target creature if no other creature has greater power.
|
// + {2} -- Destroy target creature if no other creature has greater power.
|
||||||
this.getSpellAbility().addMode(new Mode(new GetawayGlamerEffect())
|
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)));
|
.withCost(new GenericManaCost(2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public interface Target extends Serializable {
|
||||||
*/
|
*/
|
||||||
String getTargetName();
|
String getTargetName();
|
||||||
|
|
||||||
void setTargetName(String name);
|
Target setTargetName(String name);
|
||||||
|
|
||||||
String getTargetedName(Game game);
|
String getTargetedName(Game game);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -177,8 +177,9 @@ public abstract class TargetImpl implements Target {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTargetName(String name) {
|
public TargetImpl setTargetName(String name) {
|
||||||
this.targetName = name;
|
this.targetName = name;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue