From fde379b06e202c6f3300e16266e314482fc93fee Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 6 Jan 2013 09:05:19 +0100 Subject: [PATCH] Fixed a bug of Volrath's Stronghold leading to a ClassCastException. --- Mage.Sets/src/mage/sets/stronghold/VolrathsStronghold.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/stronghold/VolrathsStronghold.java b/Mage.Sets/src/mage/sets/stronghold/VolrathsStronghold.java index 67acf4f9c7..1166f9ae8e 100644 --- a/Mage.Sets/src/mage/sets/stronghold/VolrathsStronghold.java +++ b/Mage.Sets/src/mage/sets/stronghold/VolrathsStronghold.java @@ -41,8 +41,10 @@ import mage.abilities.mana.ColorlessManaAbility; import mage.cards.CardImpl; import mage.filter.FilterCard; import mage.filter.predicate.mageobject.CardTypePredicate; +import mage.filter.predicate.other.OwnerPredicate; import mage.filter.predicate.permanent.ControllerPredicate; import mage.target.common.TargetCardInGraveyard; +import mage.target.common.TargetCardInYourGraveyard; /** * @@ -54,7 +56,6 @@ public class VolrathsStronghold extends CardImpl { static { filter.add(new CardTypePredicate(CardType.CREATURE)); - filter.add(new ControllerPredicate(TargetController.YOU)); } public VolrathsStronghold(UUID ownerId) { @@ -68,7 +69,7 @@ public class VolrathsStronghold extends CardImpl { // {1}{B}, {tap}: Put target creature card from your graveyard on top of your library. Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(true), new ManaCostsImpl("{1}{B}")); ability.addCost(new TapSourceCost()); - ability.addTarget(new TargetCardInGraveyard(filter)); + ability.addTarget(new TargetCardInYourGraveyard(filter)); this.addAbility(ability); }