forked from External/mage
* Plow Under - Fixed tooltip text.
This commit is contained in:
parent
2aad58b04a
commit
af8c5880a1
2 changed files with 13 additions and 4 deletions
|
|
@ -38,6 +38,8 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.target.Target;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -97,9 +99,15 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
|
|||
if (this.staticText != null && !this.staticText.isEmpty()) {
|
||||
sb.append(staticText);
|
||||
} else {
|
||||
Target target = mode.getTargets().get(0);
|
||||
sb.append("Put ");
|
||||
if (mode.getTargets().get(0).getMaxNumberOfTargets() == 0) {
|
||||
if (target.getMaxNumberOfTargets() == 0) {
|
||||
sb.append("any number of ");
|
||||
} else {
|
||||
if (target.getMaxNumberOfTargets() > target.getNumberOfTargets()) {
|
||||
sb.append("up to ");
|
||||
}
|
||||
sb.append(CardUtil.numberToText(target.getMaxNumberOfTargets(), "a")).append(" ");
|
||||
}
|
||||
sb.append("target ").append(mode.getTargets().get(0).getTargetName()).append(" on ");
|
||||
sb.append(onTop ? "top" : "the bottom").append(" of it's owner's library");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue