Refactored Oblivion Ring, Aegis Angel related to previous changes in filtering.

This commit is contained in:
magenoxx 2011-08-10 12:29:35 +04:00
parent a60fe86fbb
commit 3f72b28dcb
2 changed files with 3 additions and 5 deletions

View file

@ -57,8 +57,7 @@ public class AegisAngel extends CardImpl<AegisAngel> {
this.toughness = new MageInt(5); this.toughness = new MageInt(5);
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
FilterPermanent filter = new FilterPermanent("another"); FilterPermanent filter = new FilterPermanent("another");
filter.setId(ownerId); filter.setAnother(true);
filter.setNotId(true);
Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Constants.Duration.WhileOnBattlefield), false); Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Constants.Duration.WhileOnBattlefield), false);
ability.addTarget(new TargetPermanent(filter)); ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability); this.addAbility(ability);

View file

@ -52,9 +52,8 @@ public class OblivionRing extends CardImpl<OblivionRing> {
super(ownerId, 20, "Oblivion Ring", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}"); super(ownerId, 20, "Oblivion Ring", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
this.expansionSetCode = "ALA"; this.expansionSetCode = "ALA";
this.color.setWhite(true); this.color.setWhite(true);
FilterNonlandPermanent filter = new FilterNonlandPermanent(); FilterNonlandPermanent filter = new FilterNonlandPermanent("another nonland permanent");
filter.setId(this.getId()); filter.setAnother(true);
filter.setNotId(true);
Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false); Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false);
Target target = new TargetPermanent(filter); Target target = new TargetPermanent(filter);
target.setRequired(true); target.setRequired(true);