Fix Mindless Null and Can't Block effect

This commit is contained in:
Evan Kranzler 2017-08-02 14:20:13 -04:00
parent 7370baad73
commit 65004d1a5f
2 changed files with 8 additions and 2 deletions

View file

@ -34,15 +34,21 @@ import mage.abilities.effects.common.combat.CantBlockUnlessYouControlSourceEffec
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
/**
*
* @author North
*/
public class MindlessNull extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("a Vampire");
static {
filter.add(new SubtypePredicate(SubType.VAMPIRE));
}
public MindlessNull(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
this.subtype.add("Zombie");
@ -50,7 +56,7 @@ public class MindlessNull extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockUnlessYouControlSourceEffect(new FilterControlledPermanent("Vampire"))));
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockUnlessYouControlSourceEffect(filter)));
}
public MindlessNull(final MindlessNull card) {

View file

@ -45,7 +45,7 @@ public class CantBlockUnlessYouControlSourceEffect extends RestrictionEffect {
public CantBlockUnlessYouControlSourceEffect(FilterControlledPermanent filter) {
super(Duration.WhileOnBattlefield);
this.filter = filter;
staticText = "{this} can't block unless you control" + filter.getMessage();
staticText = "{this} can't block unless you control " + filter.getMessage();
}
public CantBlockUnlessYouControlSourceEffect(final CantBlockUnlessYouControlSourceEffect effect) {