* Some changes to tooltip texts.

This commit is contained in:
LevelX2 2014-04-12 22:23:46 +02:00
parent 50e82ef930
commit bc0bd754dd
6 changed files with 30 additions and 14 deletions

View file

@ -44,6 +44,7 @@ import mage.filter.FilterPermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.TargetPermanent;
/**
@ -98,8 +99,10 @@ class FlickerwispEffect extends OneShotEffect<FlickerwispEffect> {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent != null) {
if (permanent.moveToExile(source.getSourceId(), "Flickerwisp Exile", source.getId(), game)) {
Player controller = game.getPlayer(source.getControllerId());
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
if (controller != null && permanent != null && sourcePermanent != null) {
if (controller.moveCardToExileWithInfo(permanent, source.getSourceId(), sourcePermanent.getName(), source.getSourceId(), game, Zone.BATTLEFIELD)) {
//create delayed triggered ability
AtEndOfTurnDelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(new ReturnFromExileEffect(source.getSourceId(), Zone.BATTLEFIELD, false));
delayedAbility.setSourceId(source.getSourceId());

View file

@ -49,7 +49,7 @@ import mage.filter.predicate.mageobject.SubtypePredicate;
* @author Loki
*/
public class LordOfLineage extends CardImpl<LordOfLineage> {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Other Vampire creatures");
static {
filter.add(new SubtypePredicate("Vampire"));
@ -71,7 +71,6 @@ public class LordOfLineage extends CardImpl<LordOfLineage> {
// Other Vampire creatures you control get +2/+2.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(2, 2, Duration.WhileOnBattlefield, filter, true)));
// {tap}: Put a 2/2 black Vampire creature token with flying onto the battlefield.
// {tap}: Put a 2/2 black Vampire creature token with flying onto the battlefield.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new VampireToken()), new TapSourceCost()));
}

View file

@ -43,7 +43,7 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
*/
public class KruphixsInsight extends CardImpl<KruphixsInsight> {
private static final FilterCard filter = new FilterCard("enchantment cards");
private static final FilterCard filter = new FilterCard("up to three enchantment cards");
static {
filter.add(new CardTypePredicate(CardType.ENCHANTMENT));

View file

@ -38,6 +38,7 @@ import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.VariableManaCost;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continious.GainAbilityAllEffect;
import mage.abilities.effects.common.continious.SetPowerToughnessAllEffect;
import mage.abilities.keyword.ChangelingAbility;
@ -50,6 +51,8 @@ import mage.filter.common.FilterControlledCreaturePermanent;
*/
public class MirrorEntity extends CardImpl<MirrorEntity> {
static private FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Creatures you control");
public MirrorEntity(UUID ownerId) {
super(ownerId, 31, "Mirror Entity", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{W}");
this.expansionSetCode = "LRW";
@ -62,9 +65,13 @@ public class MirrorEntity extends CardImpl<MirrorEntity> {
// Changeling
this.addAbility(ChangelingAbility.getInstance());
// {X}: Creatures you control become X/X and gain all creature types until end of turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(ChangelingAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures you control")),new VariableManaCost());
DynamicValue variableMana = new ManacostVariableValue();
ability.addEffect(new SetPowerToughnessAllEffect(variableMana, variableMana, Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures you control"), true));
Effect effect = new SetPowerToughnessAllEffect(variableMana, variableMana, Duration.EndOfTurn, filter, true);
effect.setText("Creatures you control become X/X");
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new VariableManaCost());
effect = new GainAbilityAllEffect(ChangelingAbility.getInstance(), Duration.EndOfTurn, filter);
effect.setText("and gain all creature types until end of turn");
ability.addEffect(effect);
this.addAbility(ability);
}