mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
[TDC] various text fixes
This commit is contained in:
parent
3281f214ab
commit
0013e075be
28 changed files with 160 additions and 159 deletions
|
|
@ -12,22 +12,17 @@ import mage.players.Player;
|
|||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DiscardSourceCost extends CostImpl {
|
||||
|
||||
private boolean nameCard = true;
|
||||
|
||||
public DiscardSourceCost() {}
|
||||
|
||||
public DiscardSourceCost(boolean nameCard){
|
||||
this.nameCard = nameCard;
|
||||
public DiscardSourceCost() {
|
||||
super();
|
||||
setText("discard this card");
|
||||
}
|
||||
|
||||
public DiscardSourceCost(DiscardSourceCost cost) {
|
||||
super(cost);
|
||||
nameCard = cost.nameCard;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -41,21 +36,10 @@ public class DiscardSourceCost extends CostImpl {
|
|||
if (player != null) {
|
||||
Card card = player.getHand().get(source.getSourceId(), game);
|
||||
paid = player.discard(card, true, source, game);
|
||||
|
||||
}
|
||||
return paid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText() {
|
||||
if(nameCard) {
|
||||
return "Discard {this}";
|
||||
}
|
||||
else{
|
||||
return "Discard this card";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DiscardSourceCost copy() {
|
||||
return new DiscardSourceCost(this);
|
||||
|
|
|
|||
|
|
@ -145,6 +145,12 @@ public final class StaticFilters {
|
|||
FILTER_CARD_ARTIFACT_FROM_YOUR_GRAVEYARD.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterCard FILTER_CARD_LAND_FROM_YOUR_GRAVEYARD = new FilterLandCard("land card from your graveyard");
|
||||
|
||||
static {
|
||||
FILTER_CARD_LAND_FROM_YOUR_GRAVEYARD.setLockedFilter(true);
|
||||
}
|
||||
|
||||
public static final FilterCreatureCard FILTER_CARD_CREATURE_A_GRAVEYARD = new FilterCreatureCard("creature card from a graveyard");
|
||||
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
* @author spjspj
|
||||
|
|
@ -16,7 +15,7 @@ import mage.constants.Zone;
|
|||
public final class DragonEggDragonToken extends TokenImpl {
|
||||
|
||||
public DragonEggDragonToken() {
|
||||
super("Dragon Token", "2/2 red Dragon creature token with flying and \"{R}: This creature gets +1/+0 until end of turn.\"");
|
||||
super("Dragon Token", "2/2 red Dragon creature token with flying and \"{R}: This token gets +1/+0 until end of turn.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.DRAGON);
|
||||
|
|
@ -24,8 +23,7 @@ public final class DragonEggDragonToken extends TokenImpl {
|
|||
toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn)
|
||||
.setText("This creature gets +1/+0 until end of turn"), new ManaCostsImpl<>("{R}")));
|
||||
this.addAbility(new SimpleActivatedAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl<>("{R}")));
|
||||
}
|
||||
|
||||
private DragonEggDragonToken(final DragonEggDragonToken token) {
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ public final class NestingDragonToken extends TokenImpl {
|
|||
"Dragon Egg Token",
|
||||
"0/2 red Dragon Egg creature token with defender and "
|
||||
+ "\""
|
||||
+ "When this creature dies, "
|
||||
+ "When this token dies, "
|
||||
+ "create a 2/2 red Dragon creature token with flying and "
|
||||
+ "'{R}: This creature gets +1/+0 until end of turn.'"
|
||||
+ "'{R}: This token gets +1/+0 until end of turn.'"
|
||||
+ "\""
|
||||
);
|
||||
cardType.add(CardType.CREATURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue