* Some minor changes.

This commit is contained in:
LevelX2 2015-02-07 18:15:43 +01:00
parent ea8446d097
commit 8a6a615250
5 changed files with 58 additions and 47 deletions

View file

@ -81,7 +81,7 @@ class SeanceEffect extends OneShotEffect {
public SeanceEffect() {
super(Outcome.PutCreatureInPlay);
this.staticText = "put a token onto the battlefield that's a copy of that card except it's a Spirit in addition to its other types. Exile it at the beginning of the next end step";
this.staticText = "you may exile target creature card from your graveyard. If you do, put a token onto the battlefield that's a copy of that card except it's a Spirit in addition to its other types. Exile it at the beginning of the next end step";
}
public SeanceEffect(final SeanceEffect effect) {

View file

@ -49,6 +49,7 @@ public class MapTheWastes extends CardImpl {
// Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.
TargetCardInLibrary target = new TargetCardInLibrary(new FilterBasicLandCard());
this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(target, true));
// Bolster 1.
this.getSpellAbility().addEffect(new BolsterEffect(1));
}

View file

@ -49,6 +49,7 @@ public class DevouringLight extends CardImpl {
// Convoke
this.addAbility(new ConvokeAbility());
// Exile target attacking or blocking creature.
this.getSpellAbility().addEffect(new ExileTargetEffect());
this.getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature());

View file

@ -28,18 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.common.EntersBattlefieldTappedAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continious.BecomesCreatureSourceEffect;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.permanent.token.Token;
@ -52,8 +50,14 @@ public class ForbiddingWatchtower extends CardImpl {
public ForbiddingWatchtower(UUID ownerId) {
super(ownerId, 352, "Forbidding Watchtower", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
// Forbidding Watchtower enters the battlefield tapped.
this.addAbility(new EntersBattlefieldTappedAbility());
// {T}: Add {W} to your mana pool.
this.addAbility(new WhiteManaAbility());
// {1}{W}: Forbidding Watchtower becomes a 1/5 white Soldier creature until end of turn. It's still a land.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new ForbiddingWatchtowerToken(), "land", Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
}

View file

@ -1518,6 +1518,10 @@ public abstract class GameImpl implements Game, Serializable {
}
}
else {
if (perm.getSpellAbility().getTargets().isEmpty()) {
Permanent enchanted = this.getPermanent(perm.getAttachedTo());
logger.error("Aura without target: " + perm.getName() + " attached to " + enchanted == null ? " null" : enchanted.getName());
} else {
Target target = perm.getSpellAbility().getTargets().get(0);
if (target instanceof TargetPermanent) {
Permanent attachedTo = getPermanent(perm.getAttachedTo());
@ -1578,6 +1582,7 @@ public abstract class GameImpl implements Game, Serializable {
}
}
}
}
if (this.getState().isLegendaryRuleActive() && filterLegendary.match(perm, this)) {
legendary.add(perm);
}