mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Eldrazi Displacer - Fixed that there were not effect applied between exile and return effect.
This commit is contained in:
parent
56997ae871
commit
cf79baca2e
1 changed files with 4 additions and 3 deletions
|
@ -50,10 +50,10 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
*/
|
*/
|
||||||
public class EldraziDisplacer extends CardImpl {
|
public class EldraziDisplacer extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("another target creature");
|
private static final FilterCreaturePermanent FILTER = new FilterCreaturePermanent("another target creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new AnotherPredicate());
|
FILTER.add(new AnotherPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public EldraziDisplacer(UUID ownerId) {
|
public EldraziDisplacer(UUID ownerId) {
|
||||||
|
@ -69,11 +69,12 @@ public class EldraziDisplacer extends CardImpl {
|
||||||
// {2}{C}: Exile another target creature, then return it to the battlefield tapped under its owner's control.
|
// {2}{C}: Exile another target creature, then return it to the battlefield tapped under its owner's control.
|
||||||
Effect effect = new ExileTargetForSourceEffect();
|
Effect effect = new ExileTargetForSourceEffect();
|
||||||
effect.setText("Exile another target creature");
|
effect.setText("Exile another target creature");
|
||||||
|
effect.setApplyEffectsAfter(); // Needed to let temporary continuous effects end if a permanent is blinked
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{C}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{C}"));
|
||||||
effect = new ReturnToBattlefieldUnderOwnerControlTargetEffect(true);
|
effect = new ReturnToBattlefieldUnderOwnerControlTargetEffect(true);
|
||||||
effect.setText(", then return it to the battlefield tapped under its owner's control");
|
effect.setText(", then return it to the battlefield tapped under its owner's control");
|
||||||
ability.addEffect(effect);
|
ability.addEffect(effect);
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(FILTER));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue