mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Text fix for cards with "named {this}" to use actual card name
This commit is contained in:
parent
c07837f743
commit
3888547fdb
9 changed files with 34 additions and 32 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.a;
|
package mage.cards.a;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
|
@ -11,8 +10,9 @@ import mage.constants.CardType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public final class AccumulatedKnowledge extends CardImpl {
|
public final class AccumulatedKnowledge extends CardImpl {
|
||||||
|
|
@ -24,13 +24,13 @@ public final class AccumulatedKnowledge extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AccumulatedKnowledge(UUID ownerId, CardSetInfo setInfo) {
|
public AccumulatedKnowledge(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}");
|
||||||
|
|
||||||
|
|
||||||
// Draw a card, then draw cards equal to the number of cards named Accumulated Knowledge in all graveyards.
|
// Draw a card, then draw cards equal to the number of cards named Accumulated Knowledge in all graveyards.
|
||||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
||||||
Effect effect = new DrawCardSourceControllerEffect(new CardsInAllGraveyardsCount(filter));
|
Effect effect = new DrawCardSourceControllerEffect(new CardsInAllGraveyardsCount(filter));
|
||||||
effect.setText(", then draw cards equal to the number of cards named {this} in all graveyards");
|
effect.setText(", then draw cards equal to the number of cards named Accumulated Knowledge in all graveyards");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ class ApproachOfTheSecondSunEffect extends OneShotEffect {
|
||||||
ApproachOfTheSecondSunEffect() {
|
ApproachOfTheSecondSunEffect() {
|
||||||
super(Outcome.Win);
|
super(Outcome.Win);
|
||||||
this.staticText
|
this.staticText
|
||||||
= "If this spell was cast from your hand and you've cast another spell named {this} this game, you win the game. "
|
= "If this spell was cast from your hand and you've cast another spell named Approach of the Second Sun this game, you win the game. "
|
||||||
+ "Otherwise, put {this} into its owner's library seventh from the top and you gain 7 life.";
|
+ "Otherwise, put {this} into its owner's library seventh from the top and you gain 7 life.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.f;
|
package mage.cards.f;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.dynamicvalue.IntPlusDynamicValue;
|
import mage.abilities.dynamicvalue.IntPlusDynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
|
|
@ -14,8 +13,9 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author L_J
|
* @author L_J
|
||||||
*/
|
*/
|
||||||
public final class FeastOfFlesh extends CardImpl {
|
public final class FeastOfFlesh extends CardImpl {
|
||||||
|
|
@ -27,14 +27,14 @@ public final class FeastOfFlesh extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public FeastOfFlesh(UUID ownerId, CardSetInfo setInfo) {
|
public FeastOfFlesh(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{B}");
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||||
|
|
||||||
// Feast of Flesh deals X damage to target creature and you gain X life, where X is 1 plus the number of cards named Feast of Flesh in all graveyards.
|
// Feast of Flesh deals X damage to target creature and you gain X life, where X is 1 plus the number of cards named Feast of Flesh in all graveyards.
|
||||||
IntPlusDynamicValue value = new IntPlusDynamicValue(1, new CardsInAllGraveyardsCount(filter));
|
IntPlusDynamicValue value = new IntPlusDynamicValue(1, new CardsInAllGraveyardsCount(filter));
|
||||||
Effect effect1 = new DamageTargetEffect(value);
|
Effect effect1 = new DamageTargetEffect(value);
|
||||||
effect1.setText("Feast of Flesh deals X damage to target creature");
|
effect1.setText("Feast of Flesh deals X damage to target creature");
|
||||||
Effect effect2 = new GainLifeEffect(value);
|
Effect effect2 = new GainLifeEffect(value);
|
||||||
effect2.setText("and you gain X life, where X is 1 plus the number of cards named {this} in all graveyards");
|
effect2.setText("and you gain X life, where X is 1 plus the number of cards named Feast of Flesh in all graveyards");
|
||||||
this.getSpellAbility().addEffect(effect1);
|
this.getSpellAbility().addEffect(effect1);
|
||||||
this.getSpellAbility().addEffect(effect2);
|
this.getSpellAbility().addEffect(effect2);
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.g;
|
package mage.cards.g;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.dynamicvalue.DynamicValue;
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
|
|
@ -17,8 +16,9 @@ import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
* modified tiera3 - added Hint
|
* modified tiera3 - added Hint
|
||||||
*/
|
*/
|
||||||
|
|
@ -29,16 +29,17 @@ public final class GalvanicBombardment extends CardImpl {
|
||||||
static {
|
static {
|
||||||
filter.add(new NamePredicate("Galvanic Bombardment"));
|
filter.add(new NamePredicate("Galvanic Bombardment"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Hint hint = new ValueHint(
|
private static final Hint hint = new ValueHint(
|
||||||
"Cards named Galvanic Bombardment in your graveyard", new GalvanicBombardmentCardsInControllerGraveyardCount(filter)
|
"Cards named Galvanic Bombardment in your graveyard", new GalvanicBombardmentCardsInControllerGraveyardCount(filter)
|
||||||
);
|
);
|
||||||
|
|
||||||
public GalvanicBombardment(UUID ownerId, CardSetInfo setInfo) {
|
public GalvanicBombardment(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{R}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{R}");
|
||||||
|
|
||||||
// Galvanic Bombardment deals X damage to target creature, where X is 2 plus the number of cards named Galvanic Bombardment in your graveyard.
|
// Galvanic Bombardment deals X damage to target creature, where X is 2 plus the number of cards named Galvanic Bombardment in your graveyard.
|
||||||
Effect effect = new DamageTargetEffect(new GalvanicBombardmentCardsInControllerGraveyardCount(filter));
|
Effect effect = new DamageTargetEffect(new GalvanicBombardmentCardsInControllerGraveyardCount(filter));
|
||||||
effect.setText("{this} deals X damage to target creature, where X is 2 plus the number of cards named {this} in your graveyard");
|
effect.setText("{this} deals X damage to target creature, where X is 2 plus the number of cards named Galvanic Bombardment in your graveyard");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||||
this.getSpellAbility().addHint(hint);
|
this.getSpellAbility().addHint(hint);
|
||||||
|
|
@ -71,8 +72,8 @@ class GalvanicBombardmentCardsInControllerGraveyardCount implements DynamicValue
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
Player controller = game.getPlayer(sourceAbility.getControllerId());
|
Player controller = game.getPlayer(sourceAbility.getControllerId());
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
amount += controller.getGraveyard().count(filter, sourceAbility.getControllerId(), sourceAbility, game);
|
amount += controller.getGraveyard().count(filter, sourceAbility.getControllerId(), sourceAbility, game);
|
||||||
}
|
}
|
||||||
return amount + 2;
|
return amount + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ public final class Kindle extends CardImpl {
|
||||||
|
|
||||||
// Kindle deals X damage to any target, where X is 2 plus the number of cards named Kindle in all graveyards.
|
// Kindle deals X damage to any target, where X is 2 plus the number of cards named Kindle in all graveyards.
|
||||||
Effect effect = new DamageTargetEffect(new KindleCardsInAllGraveyardsCount(filter));
|
Effect effect = new DamageTargetEffect(new KindleCardsInAllGraveyardsCount(filter));
|
||||||
effect.setText("{this} deals X damage to any target, where X is 2 plus the number of cards named {this} in all graveyards");
|
effect.setText("{this} deals X damage to any target, where X is 2 plus the number of cards named Kindle in all graveyards");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
this.getSpellAbility().addTarget(new TargetAnyTarget());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.k;
|
package mage.cards.k;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.dynamicvalue.IntPlusDynamicValue;
|
import mage.abilities.dynamicvalue.IntPlusDynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
|
|
@ -14,8 +13,9 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author L_J
|
* @author L_J
|
||||||
*/
|
*/
|
||||||
public final class KjeldoranWarCry extends CardImpl {
|
public final class KjeldoranWarCry extends CardImpl {
|
||||||
|
|
@ -27,12 +27,12 @@ public final class KjeldoranWarCry extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public KjeldoranWarCry(UUID ownerId, CardSetInfo setInfo) {
|
public KjeldoranWarCry(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||||
|
|
||||||
// Creatures you control get +X/+X until end of turn, where X is 1 plus the number of cards named Kjeldoran War Cry in all graveyards.
|
// Creatures you control get +X/+X until end of turn, where X is 1 plus the number of cards named Kjeldoran War Cry in all graveyards.
|
||||||
IntPlusDynamicValue value = new IntPlusDynamicValue(1, new CardsInAllGraveyardsCount(filter));
|
IntPlusDynamicValue value = new IntPlusDynamicValue(1, new CardsInAllGraveyardsCount(filter));
|
||||||
Effect effect = new BoostControlledEffect(value, value, Duration.EndOfTurn, new FilterCreaturePermanent("creatures"), false);
|
Effect effect = new BoostControlledEffect(value, value, Duration.EndOfTurn, new FilterCreaturePermanent("creatures"), false);
|
||||||
effect.setText("Creatures you control get +X/+X until end of turn, where X is 1 plus the number of cards named {this} in all graveyards");
|
effect.setText("Creatures you control get +X/+X until end of turn, where X is 1 plus the number of cards named Kjeldoran War Cry in all graveyards");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.l;
|
package mage.cards.l;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.dynamicvalue.MultipliedValue;
|
import mage.abilities.dynamicvalue.MultipliedValue;
|
||||||
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
import mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
|
|
@ -13,12 +12,13 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
|
||||||
*/
|
*/
|
||||||
public final class LifeBurst extends CardImpl {
|
public final class LifeBurst extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCard filter = new FilterCard("card named Life Burst");
|
private static final FilterCard filter = new FilterCard("card named Life Burst");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
@ -26,12 +26,12 @@ public final class LifeBurst extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public LifeBurst(UUID ownerId, CardSetInfo setInfo) {
|
public LifeBurst(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
|
||||||
|
|
||||||
// Target player gains 4 life, then gains 4 life for each card named Life Burst in each graveyard.
|
// Target player gains 4 life, then gains 4 life for each card named Life Burst in each graveyard.
|
||||||
this.getSpellAbility().addEffect(new GainLifeTargetEffect(4));
|
this.getSpellAbility().addEffect(new GainLifeTargetEffect(4));
|
||||||
Effect effect = new GainLifeTargetEffect(new MultipliedValue(new CardsInAllGraveyardsCount(filter), 4));
|
Effect effect = new GainLifeTargetEffect(new MultipliedValue(new CardsInAllGraveyardsCount(filter), 4));
|
||||||
effect.setText(", then gains 4 life for each card named {this} in each graveyard");
|
effect.setText(", then gains 4 life for each card named Life Burst in each graveyard");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.o;
|
package mage.cards.o;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
|
@ -19,8 +18,9 @@ import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author L_J
|
* @author L_J
|
||||||
*/
|
*/
|
||||||
public final class OnceMoreWithFeeling extends CardImpl {
|
public final class OnceMoreWithFeeling extends CardImpl {
|
||||||
|
|
@ -38,7 +38,7 @@ public final class OnceMoreWithFeeling extends CardImpl {
|
||||||
|
|
||||||
// DCI ruling — A deck can have only one card named Once More with Feeling.
|
// DCI ruling — A deck can have only one card named Once More with Feeling.
|
||||||
// (according to rule 112.6m, this shouldn't do anything)
|
// (according to rule 112.6m, this shouldn't do anything)
|
||||||
this.getSpellAbility().addEffect(new InfoEffect("<br>DCI ruling — A deck can have only one card named {this}"));
|
this.getSpellAbility().addEffect(new InfoEffect("<br>DCI ruling — A deck can have only one card named Once More With Feeling"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private OnceMoreWithFeeling(final OnceMoreWithFeeling card) {
|
private OnceMoreWithFeeling(final OnceMoreWithFeeling card) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
package mage.cards.t;
|
package mage.cards.t;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
|
@ -13,8 +12,9 @@ import mage.constants.CardType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
* modified tiera3 - added Hint
|
* modified tiera3 - added Hint
|
||||||
*/
|
*/
|
||||||
|
|
@ -25,17 +25,18 @@ public final class TakeInventory extends CardImpl {
|
||||||
static {
|
static {
|
||||||
filter.add(new NamePredicate("Take Inventory"));
|
filter.add(new NamePredicate("Take Inventory"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Hint hint = new ValueHint(
|
private static final Hint hint = new ValueHint(
|
||||||
"Cards named Take Inventory in your graveyard", new CardsInControllerGraveyardCount(filter)
|
"Cards named Take Inventory in your graveyard", new CardsInControllerGraveyardCount(filter)
|
||||||
);
|
);
|
||||||
|
|
||||||
public TakeInventory(UUID ownerId, CardSetInfo setInfo) {
|
public TakeInventory(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}");
|
||||||
|
|
||||||
// Draw a card, then draw cards equal to the number of cards named Take Inventory in your graveyard.
|
// Draw a card, then draw cards equal to the number of cards named Take Inventory in your graveyard.
|
||||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
||||||
Effect effect = new DrawCardSourceControllerEffect(new CardsInControllerGraveyardCount(filter));
|
Effect effect = new DrawCardSourceControllerEffect(new CardsInControllerGraveyardCount(filter));
|
||||||
effect.setText(", then draw cards equal to the number of cards named {this} in your graveyard");
|
effect.setText(", then draw cards equal to the number of cards named Take Inventory in your graveyard");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addHint(hint);
|
this.getSpellAbility().addHint(hint);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue