various fixes from checking text discrepancies

This commit is contained in:
xenohedron 2024-09-12 21:08:42 -04:00
parent c222e707bf
commit 0db5c1696d
21 changed files with 68 additions and 35 deletions

View file

@ -10,6 +10,7 @@ import mage.abilities.effects.Effects;
import mage.constants.EffectType;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.util.CardUtil;
import mage.watchers.Watcher;
import java.util.List;
@ -71,7 +72,9 @@ public class ConditionalTriggeredAbility extends TriggeredAbilityImpl {
if (abilityText == null || abilityText.isEmpty()) {
return ability.getRule();
}
return abilityText;
return (flavorWord != null ? CardUtil.italicizeWithEmDash(flavorWord) : "") +
(abilityWord != null ? abilityWord.formatWord() : "") +
abilityText + (abilityText.endsWith(".") || abilityText.endsWith("\"") || abilityText.endsWith(">") ? "" : ".");
}
@Override

View file

@ -1,9 +1,6 @@
package mage.filter.common;
import mage.constants.CardType;
import mage.constants.SuperType;
import mage.filter.FilterCard;
/**
@ -20,12 +17,6 @@ public class FilterLandCard extends FilterCard {
this.add(CardType.LAND.getPredicate());
}
public static FilterLandCard basicLandCard() {
FilterLandCard filter = new FilterLandCard("basic land card");
filter.add(SuperType.BASIC.getPredicate());
return filter;
}
protected FilterLandCard(final FilterLandCard filter) {
super(filter);
}

View file

@ -0,0 +1,31 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class InsectBlackGreenFlyingToken extends TokenImpl {
public InsectBlackGreenFlyingToken() {
super("Insect Token", "1/1 black and green Insect creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlack(true);
color.setGreen(true);
subtype.add(SubType.INSECT);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());
}
private InsectBlackGreenFlyingToken(final InsectBlackGreenFlyingToken token) {
super(token);
}
public InsectBlackGreenFlyingToken copy() {
return new InsectBlackGreenFlyingToken(this);
}
}