* Phyrexian Furnace - Fixed the missing sacrifice cost.

This commit is contained in:
LevelX2 2015-12-13 17:02:25 +01:00
parent a75c2694b1
commit 6982caed33

View file

@ -30,6 +30,7 @@ package mage.sets.weatherlight;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.OneShotEffect;
@ -63,6 +64,7 @@ public class PhyrexianFurnace extends CardImpl {
// {1}, Sacrifice Phyrexian Furnace: Exile target card from a graveyard. Draw a card.
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}"));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetCardInGraveyard());
ability.addEffect(new DrawCardSourceControllerEffect(1));
this.addAbility(ability);
@ -99,7 +101,7 @@ class PhyrexianFurnaceEffect extends OneShotEffect {
Player player = game.getPlayer(source.getFirstTarget());
if (player != null) {
Card bottomCard = null;
for (Card card :player.getGraveyard().getCards(game)) {
for (Card card : player.getGraveyard().getCards(game)) {
bottomCard = card;
break;
}