mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Leyline of the Void - Fixed a bug that also cards could be exiled that go to controllers graveyard.
This commit is contained in:
parent
6bebd70a92
commit
e4429c4f70
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue