From 3f72b28dcb18e578a9d1f21c3f0b4eed8345d1e0 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 10 Aug 2011 12:29:35 +0400 Subject: [PATCH] Refactored Oblivion Ring, Aegis Angel related to previous changes in filtering. --- Mage.Sets/src/mage/sets/magic2012/AegisAngel.java | 3 +-- Mage.Sets/src/mage/sets/shardsofalara/OblivionRing.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2012/AegisAngel.java b/Mage.Sets/src/mage/sets/magic2012/AegisAngel.java index 4bc8a2a7ef..dc136f4cb0 100644 --- a/Mage.Sets/src/mage/sets/magic2012/AegisAngel.java +++ b/Mage.Sets/src/mage/sets/magic2012/AegisAngel.java @@ -57,8 +57,7 @@ public class AegisAngel extends CardImpl { this.toughness = new MageInt(5); this.addAbility(FlyingAbility.getInstance()); FilterPermanent filter = new FilterPermanent("another"); - filter.setId(ownerId); - filter.setNotId(true); + filter.setAnother(true); Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Constants.Duration.WhileOnBattlefield), false); ability.addTarget(new TargetPermanent(filter)); this.addAbility(ability); diff --git a/Mage.Sets/src/mage/sets/shardsofalara/OblivionRing.java b/Mage.Sets/src/mage/sets/shardsofalara/OblivionRing.java index 9cf148178c..179d351e24 100644 --- a/Mage.Sets/src/mage/sets/shardsofalara/OblivionRing.java +++ b/Mage.Sets/src/mage/sets/shardsofalara/OblivionRing.java @@ -52,9 +52,8 @@ public class OblivionRing extends CardImpl { super(ownerId, 20, "Oblivion Ring", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}"); this.expansionSetCode = "ALA"; this.color.setWhite(true); - FilterNonlandPermanent filter = new FilterNonlandPermanent(); - filter.setId(this.getId()); - filter.setNotId(true); + FilterNonlandPermanent filter = new FilterNonlandPermanent("another nonland permanent"); + filter.setAnother(true); Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false); Target target = new TargetPermanent(filter); target.setRequired(true);