mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fix text on some random cards
This commit is contained in:
parent
b215e9c32c
commit
95f14536eb
18 changed files with 29 additions and 29 deletions
|
@ -54,7 +54,7 @@ import mage.target.common.TargetControlledCreaturePermanent;
|
|||
*/
|
||||
public class AboshanCephalidEmperor extends CardImpl {
|
||||
|
||||
static final FilterControlledCreaturePermanent filter1 = new FilterControlledCreaturePermanent("untapped Cephalid");
|
||||
static final FilterControlledCreaturePermanent filter1 = new FilterControlledCreaturePermanent("untapped Cephalid you control");
|
||||
static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("creatures without flying");
|
||||
|
||||
static {
|
||||
|
|
|
@ -28,12 +28,12 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.costs.common.DiscardTargetCost;
|
||||
|
||||
import mage.abilities.costs.common.DiscardCardCost;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCardInHand;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
|
@ -47,7 +47,7 @@ public class AcceptableLosses extends CardImpl {
|
|||
|
||||
|
||||
// As an additional cost to cast Acceptable Losses, discard a card at random.
|
||||
this.getSpellAbility().addCost(new DiscardTargetCost(new TargetCardInHand(), true));
|
||||
this.getSpellAbility().addCost(new DiscardCardCost(true));
|
||||
// Acceptable Losses deals 5 damage to target creature.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(5));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
|
|
@ -71,7 +71,7 @@ class AgelessEntityEffect extends OneShotEffect {
|
|||
|
||||
public AgelessEntityEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "put that many +1/+1 counters on this creature";
|
||||
this.staticText = "put that many +1/+1 counters on {this}";
|
||||
}
|
||||
|
||||
public AgelessEntityEffect(final AgelessEntityEffect effect) {
|
||||
|
|
|
@ -45,11 +45,10 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
/**
|
||||
*
|
||||
* @author LoneFox
|
||||
|
||||
*/
|
||||
public class AlphaKavu extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Kavu");
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Kavu creature");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate("Kavu"));
|
||||
|
|
|
@ -56,7 +56,7 @@ import mage.target.common.TargetControlledCreaturePermanent;
|
|||
*/
|
||||
public class AltarGolem extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped creatures");
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped creatures you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(new TappedPredicate()));
|
||||
|
|
|
@ -67,7 +67,7 @@ public class AnyaMercilessAngel extends CardImpl {
|
|||
// Anya, Merciless Angel gets +3/+3 for each opponent whose life total is less than half his or her starting life total.
|
||||
DynamicValue dValue = new MultipliedValue(new AnyaMercilessAngelDynamicValue(), 3);
|
||||
Effect effect = new BoostSourceEffect(dValue, dValue, Duration.WhileOnBattlefield);
|
||||
effect.setText("{this{ gets +3/+3 for each opponent whose life total is less than half his or her starting life total");
|
||||
effect.setText("{this} gets +3/+3 for each opponent whose life total is less than half his or her starting life total");
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(dValue, dValue, Duration.WhileOnBattlefield)));
|
||||
|
||||
// As long as an opponent's life total is less than half his or her starting life total, Anya has indestructible.
|
||||
|
|
|
@ -60,7 +60,7 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class ArachnusSpinner extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped Spider");
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("untapped Spider you control");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate("Spider"));
|
||||
|
|
|
@ -55,7 +55,7 @@ import mage.filter.predicate.permanent.TappedPredicate;
|
|||
*/
|
||||
public class ArcadesSabboth extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("untapped creatures you control");
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("untapped nonattacking creatures you control");
|
||||
|
||||
static {
|
||||
filter.add(new ControllerPredicate(TargetController.YOU));
|
||||
|
|
|
@ -79,7 +79,7 @@ class AvatarOfMightCostReductionEffect extends CostModificationEffectImpl {
|
|||
|
||||
AvatarOfMightCostReductionEffect() {
|
||||
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
||||
staticText = "If an opponent controls at least four more creatures than you, {this} will costs {6} less to cast";
|
||||
staticText = "If an opponent controls at least four more creatures than you, {this} costs {6} less to cast";
|
||||
}
|
||||
|
||||
AvatarOfMightCostReductionEffect(final AvatarOfMightCostReductionEffect effect) {
|
||||
|
|
|
@ -78,7 +78,7 @@ class AvatarOfWillCostReductionEffect extends CostModificationEffectImpl {
|
|||
|
||||
AvatarOfWillCostReductionEffect() {
|
||||
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);
|
||||
staticText = "If an opponent has no cards in hand, {this} will costs {6} less to cast";
|
||||
staticText = "If an opponent has no cards in hand, {this} costs {6} less to cast";
|
||||
}
|
||||
|
||||
AvatarOfWillCostReductionEffect(final AvatarOfWillCostReductionEffect effect) {
|
||||
|
|
|
@ -73,7 +73,7 @@ class BalancingActEffect extends OneShotEffect {
|
|||
|
||||
public BalancingActEffect() {
|
||||
super(Outcome.Sacrifice);
|
||||
staticText = "Each player chooses a number of lands he or she controls equal to the number of lands controlled by the player who controls the fewest, then sacrifices the rest. Players sacrifice creatures and discard cards the same way";
|
||||
staticText = "Each player chooses a number of permanents he or she controls equal to the number of permanents controlled by the player who controls the fewest, then sacrifices the rest. Each player discards cards the same way";
|
||||
}
|
||||
|
||||
public BalancingActEffect(final BalancingActEffect effect) {
|
||||
|
@ -90,7 +90,7 @@ class BalancingActEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
int minPermanent = Integer.MAX_VALUE, minCard = Integer.MAX_VALUE;
|
||||
// count minimal permanets
|
||||
// count minimal permanents
|
||||
for(UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)){
|
||||
Player player = game.getPlayer(playerId);
|
||||
if(player != null){
|
||||
|
|
|
@ -58,7 +58,7 @@ public class BaneOfTheLiving extends CardImpl {
|
|||
this.addAbility(new MorphAbility(this, new ManaCostsImpl("{X}{B}{B}")));
|
||||
// When Bane of the Living is turned face up, all creatures get -X/-X until end of turn.
|
||||
DynamicValue morphX = new SignInversionDynamicValue(new MorphManacostVariableValue());
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new BoostAllEffect(morphX, morphX, Duration.EndOfTurn, new FilterCreaturePermanent(), false, "", true)));
|
||||
this.addAbility(new TurnedFaceUpSourceTriggeredAbility(new BoostAllEffect(morphX, morphX, Duration.EndOfTurn, new FilterCreaturePermanent("all creatures"), false, "", true)));
|
||||
}
|
||||
|
||||
public BaneOfTheLiving(final BaneOfTheLiving card) {
|
||||
|
|
|
@ -54,7 +54,8 @@ public class BlurSliver extends CardImpl {
|
|||
|
||||
// Sliver creatures you control have haste.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityAllEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Sliver","Sliver creatures"))));
|
||||
new GainAbilityAllEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield,
|
||||
new FilterControlledCreaturePermanent("Sliver", "Sliver creatures you control"))));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class CoastalDiscovery extends CardImpl {
|
|||
// Draw two cards.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2));
|
||||
|
||||
// Awaken 4 - {5}U}
|
||||
// Awaken 4 - {5}{U}
|
||||
this.addAbility(new AwakenAbility(this, 4, "{5}{U}"));
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ import mage.game.events.GameEvent;
|
|||
*/
|
||||
public class Pestilence extends CardImpl {
|
||||
|
||||
private static final String ruleText = "At the beginning of the end step, if no creatures are on the battlefield, sacrifice Pestilence.";
|
||||
private static final String ruleText = "At the beginning of the end step, if no creatures are on the battlefield, sacrifice {this}.";
|
||||
|
||||
public Pestilence(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{B}{B}");
|
||||
|
|
|
@ -49,7 +49,7 @@ import mage.game.events.GameEvent;
|
|||
*/
|
||||
public class Pyrohemia extends CardImpl {
|
||||
|
||||
private static final String ruleText = "At the beginning of the end step, if no creatures are on the battlefield, sacrifice Pyrohemia.";
|
||||
private static final String ruleText = "At the beginning of the end step, if no creatures are on the battlefield, sacrifice {this}.";
|
||||
|
||||
public Pyrohemia(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{R}{R}");
|
||||
|
|
|
@ -36,8 +36,6 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
|
@ -51,12 +49,6 @@ import mage.target.targetpointer.FixedTarget;
|
|||
*/
|
||||
public class ZoZuThePunisher extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("legendary spell");
|
||||
|
||||
static {
|
||||
filter.add(new SupertypePredicate("Legendary"));
|
||||
}
|
||||
|
||||
public ZoZuThePunisher(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}{R}");
|
||||
this.supertype.add("Legendary");
|
||||
|
|
|
@ -83,6 +83,14 @@ public class RevealTargetPlayerLibraryEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
private String setText() {
|
||||
return "Reveal the top " + CardUtil.numberToText(amountCards.toString()) + " cards of target player's library.";
|
||||
String number = amountCards.toString();
|
||||
StringBuilder sb = new StringBuilder("Reveal the top ");
|
||||
if ("1".equals(number)) {
|
||||
sb.append("card");
|
||||
} else {
|
||||
sb.append(CardUtil.numberToText(number)).append(" cards");
|
||||
}
|
||||
sb.append(" of target player's library.");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue