mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
target required for aegis angel
This commit is contained in:
parent
b4ef6802a4
commit
60a865ed19
1 changed files with 4 additions and 1 deletions
|
@ -41,6 +41,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
@ -59,7 +60,9 @@ public class AegisAngel extends CardImpl<AegisAngel> {
|
|||
FilterPermanent filter = new FilterPermanent("another");
|
||||
filter.setAnother(true);
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Constants.Duration.WhileOnBattlefield), false);
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
Target target = new TargetPermanent(filter);
|
||||
target.setRequired(true);
|
||||
ability.addTarget(target);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue