* Leyline of the Void - Fixed a bug that also cards could be exiled that go to controllers graveyard.

This commit is contained in:
LevelX2 2014-03-26 19:08:44 +01:00
parent 6bebd70a92
commit e4429c4f70
2 changed files with 7 additions and 4 deletions

View file

@ -118,7 +118,8 @@ class LeylineOfTheVoidEffect extends ReplacementEffectImpl<LeylineOfTheVoidEffec
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == EventType.ZONE_CHANGE && ((ZoneChangeEvent)event).getToZone() == Zone.GRAVEYARD) {
if (game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) {
Card card = game.getCard(event.getTargetId());
if (card != null && game.getOpponents(source.getControllerId()).contains(card.getOwnerId())) {
return true;
}
}

View file

@ -29,11 +29,11 @@
package mage.sets.shardsofalara;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.DiscardTargetEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.target.TargetPlayer;
/**
@ -47,7 +47,9 @@ public class Blightning extends CardImpl<Blightning> {
this.expansionSetCode = "ALA";
this.color.setBlack(true);
this.color.setRed(true);
this.getSpellAbility().addTarget(new TargetPlayer());
// Blightning deals 3 damage to target player. That player discards two cards.
this.getSpellAbility().addTarget(new TargetPlayer(true));
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
}