text update: "of their choice" of the top or bottom

This commit is contained in:
xenohedron 2024-11-29 02:50:09 -05:00
parent 6f43e76c9e
commit ab81e45cc9
3 changed files with 3 additions and 12 deletions

View file

@ -13,24 +13,15 @@ import mage.players.Player;
public class PutOnTopOrBottomLibraryTargetEffect extends OneShotEffect {
private final boolean textOwnerOf;
private final boolean textTheirChoice;
public PutOnTopOrBottomLibraryTargetEffect(boolean textOwnerOf) {
super(Outcome.ReturnToHand);
this.textOwnerOf = textOwnerOf;
this.textTheirChoice = false;
}
public PutOnTopOrBottomLibraryTargetEffect(boolean textOwnerOf, boolean textTheirChoice) {
super(Outcome.ReturnToHand);
this.textOwnerOf = textOwnerOf;
this.textTheirChoice = textTheirChoice;
}
private PutOnTopOrBottomLibraryTargetEffect(final PutOnTopOrBottomLibraryTargetEffect effect) {
super(effect);
this.textOwnerOf = effect.textOwnerOf;
this.textTheirChoice = effect.textTheirChoice;
}
@Override
@ -58,6 +49,6 @@ public class PutOnTopOrBottomLibraryTargetEffect extends OneShotEffect {
}
String targetText = getTargetPointer().describeTargets(mode.getTargets(), "that permanent");
return (textOwnerOf ? "the owner of " + targetText : targetText + "'s owner") +
" puts it on " + (textTheirChoice ? "their choice of " : "") + "the top or bottom of their library";
" puts it on their choice of the top or bottom of their library";
}
}