mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Refactored Oblivion Ring, Aegis Angel related to previous changes in filtering.
This commit is contained in:
parent
a60fe86fbb
commit
3f72b28dcb
2 changed files with 3 additions and 5 deletions
|
@ -57,8 +57,7 @@ public class AegisAngel extends CardImpl<AegisAngel> {
|
|||
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);
|
||||
|
|
|
@ -52,9 +52,8 @@ public class OblivionRing extends CardImpl<OblivionRing> {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue