mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
* Academy Rector - Fixed that the triggered abiliy did never work.
This commit is contained in:
parent
ac4c7048c0
commit
3842a07064
3 changed files with 9 additions and 8 deletions
|
|
@ -29,7 +29,6 @@ package mage.sets.championsofkamigawa;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import mage.constants.Rarity;
|
|||
import mage.constants.Zone;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.Costs;
|
||||
import mage.abilities.costs.CostsImpl;
|
||||
import mage.abilities.costs.common.ExileSourceCost;
|
||||
|
|
@ -52,11 +53,11 @@ public class BrittleEffigy extends CardImpl {
|
|||
public BrittleEffigy(UUID ownerId) {
|
||||
super(ownerId, 202, "Brittle Effigy", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
this.expansionSetCode = "M11";
|
||||
Costs costs = new CostsImpl();
|
||||
costs.add(new TapSourceCost());
|
||||
costs.add(new ExileSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), costs);
|
||||
ability.addManaCost(new GenericManaCost(4));
|
||||
|
||||
// {4}, {T}, Exile Brittle Effigy: Exile target creature.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new GenericManaCost(4));
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new ExileSourceCost());
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.costs.common.ExileSourceCost;
|
||||
import mage.abilities.costs.common.ExileSourceFromGraveCost;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.cards.Card;
|
||||
|
|
@ -63,7 +64,7 @@ public class AcademyRector extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Academy Rector dies, you may exile it. If you do, search your library for an enchantment card, put that card onto the battlefield, then shuffle your library.
|
||||
Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new AcademyRectorEffect(), new ExileSourceCost(), "Exile to search enchantment?"), false);
|
||||
Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new AcademyRectorEffect(), new ExileSourceFromGraveCost(), "Exile to search enchantment?"), false);
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +88,7 @@ class AcademyRectorEffect extends OneShotEffect {
|
|||
|
||||
public AcademyRectorEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "Search your library for an enchantment card and put it onto the battlefield. Then shuffle your library";
|
||||
staticText = "search your library for an enchantment card and put it onto the battlefield. Then shuffle your library";
|
||||
}
|
||||
|
||||
public AcademyRectorEffect(final AcademyRectorEffect effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue