Fixed really a bug of Foundry Street Denizen giving bonus to all permanents instaed of only controlled creatures. Fixes issue #121.

This commit is contained in:
LevelX2 2013-02-04 15:33:15 +01:00
parent 07db2c8736
commit 5781d2ac4a

View file

@ -28,7 +28,6 @@
package mage.sets.gatecrash; package mage.sets.gatecrash;
import java.util.UUID; import java.util.UUID;
import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity; import mage.Constants.Rarity;
import mage.MageInt; import mage.MageInt;
@ -37,8 +36,10 @@ import mage.abilities.common.EntersBattlefieldAllTriggeredAbility;
import mage.abilities.effects.common.continious.BoostSourceEffect; import mage.abilities.effects.common.continious.BoostSourceEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.filter.FilterPermanent; import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.mageobject.ColorPredicate; import mage.filter.predicate.mageobject.ColorPredicate;
import mage.filter.predicate.permanent.AnotherPredicate; import mage.filter.predicate.permanent.AnotherPredicate;
import mage.filter.predicate.permanent.ControllerPredicate;
/** /**
* *
@ -46,9 +47,10 @@ import mage.filter.predicate.permanent.AnotherPredicate;
*/ */
public class FoundryStreetDenizen extends CardImpl<FoundryStreetDenizen> { public class FoundryStreetDenizen extends CardImpl<FoundryStreetDenizen> {
private static final FilterPermanent filter = new FilterCreaturePermanent("another red creature"); private static final FilterPermanent filter = new FilterCreaturePermanent("another red creature under your control");
static { static {
filter.add(new AnotherPredicate()); filter.add(new AnotherPredicate());
filter.add(new ControllerPredicate(TargetController.YOU));
filter.add(new ColorPredicate(ObjectColor.RED)); filter.add(new ColorPredicate(ObjectColor.RED));
} }