mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Fixed notCardType in FilterObject. Now Crush, Go for the Troat, Inquisition Of Koziler, Negate, Duress, Spell Pierce works correctly.
This commit is contained in:
parent
da316cc345
commit
786b5cd751
8 changed files with 29 additions and 19 deletions
|
|
@ -78,10 +78,8 @@ class DuressEffect extends OneShotEffect<DuressEffect> {
|
|||
private static FilterCard filter = new FilterCard("noncreature, nonland card");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.CREATURE);
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setScopeCardType(ComparisonScope.Any);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
filter.getNotCardType().add(CardType.LAND);
|
||||
}
|
||||
|
||||
public DuressEffect() {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ public class Negate extends CardImpl<Negate> {
|
|||
private static FilterSpell filter = new FilterSpell("noncreature spell");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
}
|
||||
|
||||
public Negate(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@ public class Crush extends CardImpl<Crush> {
|
|||
private static final FilterArtifactPermanent filter = new FilterArtifactPermanent("noncreature artifact");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
}
|
||||
|
||||
public Crush(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ public class GofortheThroat extends CardImpl<GofortheThroat> {
|
|||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.ARTIFACT);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.ARTIFACT);
|
||||
}
|
||||
|
||||
public GofortheThroat(UUID ownerId) {
|
||||
|
|
|
|||
|
|
@ -79,9 +79,7 @@ class InquisitionOfKozilekEffect extends OneShotEffect<InquisitionOfKozilekEffec
|
|||
private static FilterCard filter = new FilterCard("nonland card with converted mana cost 3 or less");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setScopeCardType(ComparisonScope.Any);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.LAND);
|
||||
|
||||
filter.setConvertedManaCost(4);
|
||||
filter.setConvertedManaCostComparison(ComparisonType.LessThan);
|
||||
|
|
|
|||
|
|
@ -46,8 +46,7 @@ public class SpellPierce extends CardImpl<SpellPierce> {
|
|||
private static FilterSpell filter = new FilterSpell("noncreature spell");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.CREATURE);
|
||||
filter.setNotCardType(true);
|
||||
filter.getNotCardType().add(CardType.CREATURE);
|
||||
}
|
||||
|
||||
public SpellPierce(UUID ownerId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue