mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed Issue 3
This commit is contained in:
parent
d6ae12cfe6
commit
b5e098fb50
2 changed files with 8 additions and 2 deletions
|
@ -39,6 +39,7 @@ import mage.abilities.common.LeavesBattlefieldTriggeredAbility;
|
|||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
@ -55,7 +56,9 @@ public class OblivionRing extends CardImpl<OblivionRing> {
|
|||
filter.setId(this.getId());
|
||||
filter.setNotId(true);
|
||||
Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false);
|
||||
ability1.addTarget(new TargetPermanent(filter));
|
||||
Target target = new TargetPermanent(filter);
|
||||
target.setRequired(true);
|
||||
ability1.addTarget(target);
|
||||
this.addAbility(ability1);
|
||||
Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileEffect(this.getId(), Zone.BATTLEFIELD), false);
|
||||
this.addAbility(ability2);
|
||||
|
|
|
@ -39,6 +39,7 @@ import mage.abilities.effects.common.ExileTargetEffect;
|
|||
import mage.abilities.effects.common.ReturnFromExileEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
@ -55,7 +56,9 @@ public class JourneytoNowhere extends CardImpl<JourneytoNowhere> {
|
|||
filter.setId(this.getId());
|
||||
filter.setNotId(true);
|
||||
Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Journey to Nowhere exile"), false);
|
||||
ability1.addTarget(new TargetPermanent(filter));
|
||||
Target target = new TargetPermanent(filter);
|
||||
target.setRequired(true);
|
||||
ability1.addTarget(target);
|
||||
this.addAbility(ability1);
|
||||
Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileEffect(this.getId(), Zone.BATTLEFIELD), false);
|
||||
this.addAbility(ability2);
|
||||
|
|
Loading…
Reference in a new issue