mirror of
https://github.com/correl/mage.git
synced 2025-04-07 01:06:54 -09:00
ReturnToHandChosenControlledPermanentCost: fix text for n > 1
This commit is contained in:
parent
6887dfb61d
commit
531577890d
4 changed files with 6 additions and 5 deletions
Mage.Sets/src/mage/cards
Mage/src/main/java/mage/abilities/costs/common
|
@ -59,7 +59,7 @@ public class Ensnare extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Tap all creatures.
|
||||
this.getSpellAbility().addEffect(new TapAllEffect(new FilterCreaturePermanent()));
|
||||
this.getSpellAbility().addEffect(new TapAllEffect(new FilterCreaturePermanent("creatures")));
|
||||
}
|
||||
|
||||
public Ensnare(final Ensnare card) {
|
||||
|
|
|
@ -44,7 +44,7 @@ import mage.target.common.TargetControlledPermanent;
|
|||
*/
|
||||
public class Gush extends CardImpl {
|
||||
|
||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("Island");
|
||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("Islands");
|
||||
static{
|
||||
filter.add(new SubtypePredicate("Island"));
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ import mage.target.common.TargetControlledPermanent;
|
|||
* @author markedagain
|
||||
*/
|
||||
public class Thwart extends CardImpl {
|
||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("Island");
|
||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("Islands");
|
||||
static{
|
||||
filter.add(new SubtypePredicate("Island"));
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import mage.game.Game;
|
|||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -51,9 +52,9 @@ public class ReturnToHandChosenControlledPermanentCost extends CostImpl {
|
|||
target.setNotTarget(true);
|
||||
this.addTarget(target);
|
||||
if (target.getMaxNumberOfTargets() > 1 && target.getMaxNumberOfTargets() == target.getNumberOfTargets()) {
|
||||
this.text = new StringBuilder("return ").append(target.getMaxNumberOfTargets()).append(" ").append(target.getTargetName()).append(" you control to its owner's hand").toString();
|
||||
this.text = "return " + CardUtil.numberToText(target.getMaxNumberOfTargets()) + " " + target.getTargetName() + " you control to their owner's hand";
|
||||
} else {
|
||||
this.text = new StringBuilder("return ").append(target.getTargetName()).append(" you control to its owner's hand").toString();
|
||||
this.text = "return " + target.getTargetName() + " you control to its owner's hand";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue