mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Iname Life Aspect - Fixed that the triggered abiliy did not work correctly.
This commit is contained in:
parent
3842a07064
commit
f0ce653b60
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,8 @@ import mage.constants.Rarity;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileSourceEffect;
|
||||
import mage.abilities.costs.common.ExileSourceFromGraveCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.FilterCard;
|
||||
|
@ -62,8 +63,7 @@ public class InameLifeAspect extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// When Iname, Life Aspect dies, you may exile it. If you do, return any number of target Spirit cards from your graveyard to your hand.
|
||||
Ability ability = new DiesTriggeredAbility(new ExileSourceEffect(), true);
|
||||
ability.addEffect(new ReturnToHandTargetEffect());
|
||||
Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new ExileSourceFromGraveCost(), "Exile to return Spirit cards?"), false);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(0, Integer.MAX_VALUE, filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue