Fixed cards that broken whole server (see #4402)

This commit is contained in:
Oleg Agafonov 2018-01-12 21:23:49 +04:00
parent 7c2511355e
commit af113d4ed1
4 changed files with 16 additions and 11 deletions

View file

@ -88,6 +88,7 @@ class TargetControlledPermanentSharingOpponentPermanentCardType extends TargetCo
public TargetControlledPermanentSharingOpponentPermanentCardType() {
super();
this.filter = this.filter.copy();
filter.add(Predicates.not(new CardTypePredicate(CardType.LAND)));
setTargetName("nonland permanent you control");
}
@ -155,6 +156,7 @@ class DaringThiefSecondTarget extends TargetPermanent {
public DaringThiefSecondTarget() {
super();
this.filter = this.filter.copy();
filter.add(new ControllerPredicate(TargetController.OPPONENT));
setTargetName("permanent an opponent controls that shares a card type with it");
}

View file

@ -81,6 +81,7 @@ class TargetControlledPermanentWithCMCGreaterOrLessThanOpponentPermanent extends
public TargetControlledPermanentWithCMCGreaterOrLessThanOpponentPermanent() {
super();
this.filter = this.filter.copy();
filter.add(Predicates.not(new CardTypePredicate(CardType.LAND)));
setTargetName("nonland permanent you control");
}
@ -118,6 +119,7 @@ class PucasMischiefSecondTarget extends TargetPermanent {
public PucasMischiefSecondTarget() {
super();
this.filter = this.filter.copy();
filter.add(new ControllerPredicate(TargetController.OPPONENT));
filter.add(Predicates.not(new CardTypePredicate(CardType.LAND)));
setTargetName("permanent an opponent controls with an equal or lesser converted mana cost");

View file

@ -86,6 +86,7 @@ class TargetControlledCreatureWithPowerGreaterOrLessThanOpponentPermanent extend
public TargetControlledCreatureWithPowerGreaterOrLessThanOpponentPermanent() {
super();
this.filter = this.filter.copy();
filter.add(new CardTypePredicate(CardType.CREATURE));
setTargetName("creature you control");
}
@ -123,6 +124,7 @@ class SpawnbrokerSecondTarget extends TargetPermanent {
public SpawnbrokerSecondTarget() {
super();
this.filter = this.filter.copy();
filter.add(new ControllerPredicate(TargetController.OPPONENT));
filter.add(new CardTypePredicate(CardType.CREATURE));
setTargetName("creature with power less than or equal to that creature's power an opponent controls");