From 6982caed3312f36e2214b10f1bef10b2d47caaca Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 13 Dec 2015 17:02:25 +0100 Subject: [PATCH] * Phyrexian Furnace - Fixed the missing sacrifice cost. --- .../src/mage/sets/weatherlight/PhyrexianFurnace.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/sets/weatherlight/PhyrexianFurnace.java b/Mage.Sets/src/mage/sets/weatherlight/PhyrexianFurnace.java index 3c32492169..fd2457910f 100644 --- a/Mage.Sets/src/mage/sets/weatherlight/PhyrexianFurnace.java +++ b/Mage.Sets/src/mage/sets/weatherlight/PhyrexianFurnace.java @@ -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; @@ -60,9 +61,10 @@ public class PhyrexianFurnace extends CardImpl { Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PhyrexianFurnaceEffect(), new TapSourceCost()); ability.addTarget(new TargetPlayer()); this.addAbility(ability); - + // {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; } @@ -110,4 +112,4 @@ class PhyrexianFurnaceEffect extends OneShotEffect { } return false; } -} \ No newline at end of file +}