From 85b46b7474eae2306a4bbfc1350e19b9c0033251 Mon Sep 17 00:00:00 2001 From: fireshoes Date: Thu, 15 Jan 2015 17:06:04 -0600 Subject: [PATCH] Changed UrzaTerrainValue to check Subtype instead of Name --- .../abilities/dynamicvalue/common/UrzaTerrainValue.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage/src/mage/abilities/dynamicvalue/common/UrzaTerrainValue.java b/Mage/src/mage/abilities/dynamicvalue/common/UrzaTerrainValue.java index 139008f740..83fae5035d 100644 --- a/Mage/src/mage/abilities/dynamicvalue/common/UrzaTerrainValue.java +++ b/Mage/src/mage/abilities/dynamicvalue/common/UrzaTerrainValue.java @@ -4,7 +4,7 @@ import mage.abilities.Ability; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.effects.Effect; import mage.filter.common.FilterControlledPermanent; -import mage.filter.predicate.mageobject.NamePredicate; +import mage.filter.predicate.mageobject.SubtypePredicate; import mage.game.Game; public class UrzaTerrainValue implements DynamicValue { @@ -17,7 +17,7 @@ public class UrzaTerrainValue implements DynamicValue { @Override public int calculate(Game game, Ability sourceAbility, Effect effect) { FilterControlledPermanent pp = new FilterControlledPermanent("Urza's Power Plant"); - pp.add(new NamePredicate("Urza's Power Plant")); + pp.add(new SubtypePredicate("Urza's Power Plant")); PermanentsOnBattlefieldCount ppP = new PermanentsOnBattlefieldCount(pp); if (ppP.calculate(game, sourceAbility, effect) < 1) { @@ -25,7 +25,7 @@ public class UrzaTerrainValue implements DynamicValue { } FilterControlledPermanent to = new FilterControlledPermanent("Urza's Tower"); - to.add(new NamePredicate("Urza's Tower")); + to.add(new SubtypePredicate("Urza's Tower")); PermanentsOnBattlefieldCount toP = new PermanentsOnBattlefieldCount(to); if (toP.calculate(game, sourceAbility, effect) < 1) { @@ -33,7 +33,7 @@ public class UrzaTerrainValue implements DynamicValue { } FilterControlledPermanent mi = new FilterControlledPermanent("Urza's Mine"); - mi.add(new NamePredicate("Urza's Mine")); + mi.add(new SubtypePredicate("Urza's Mine")); PermanentsOnBattlefieldCount miP = new PermanentsOnBattlefieldCount(mi); if (miP.calculate(game, sourceAbility, effect) < 1) {