mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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.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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue