static { filter.add( Predicates.or( new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY))); filterPermanent.add(Predicates.not(new TokenPredicate())); filterPermanent.add(new AnotherPredicate()); }
@Override public boolean checkTrigger(GameEvent event, Game game) { StackObject spell = game.getStack().getStackObject(event.getSourceId()); if (spell == null || !(spell instanceof Spell)) { return false; } else { if (event.getTargetId().equals(this.getSourceId()) && game.getOpponents(this.controllerId).contains(event.getPlayerId()) && spellCard.match(spell, getSourceId(), getControllerId(), game)) { for (Effect effect : getEffects()) { effect.setTargetPointer(new FixedTarget(spell.getId())); } return true; } } return false; }
static { filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE))); }
static { blueFilter.add(new ColorPredicate(ObjectColor.BLUE)); blackFilter.add(new ColorPredicate(ObjectColor.BLACK)); }
static { filter.add(new CardTypePredicate(CardType.ARTIFACT)); }
static { filter.add(new SecondSpellPredicate()); }
static { filterNonCreature.add(Predicates.not(new CardTypePredicate(CardType.CREATURE))); }
static { filter.add(new ColorPredicate(ObjectColor.BLACK)); }
static { filter.add( Predicates.or( new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY))); }
static { filter.add(new ColorPredicate(ObjectColor.RED)); filter.add( Predicates.or( new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY))); }
static { filter.add(new SupertypePredicate("Legendary")); }
static { filterSpell.add(new ColorPredicate(ObjectColor.GREEN)); filterLand.add(new SubtypePredicate("Forest")); }
static { filter.add(Predicates.not(new SubtypePredicate("Faerie"))); }
static { filterSpell.add(new ColorlessPredicate()); }
static { filterGreenSpell.add(new ColorPredicate(ObjectColor.GREEN)); filterBlueSpell.add(new ColorPredicate(ObjectColor.BLUE)); }
static { filter.add(new ControllerPredicate(TargetController.NOT_YOU)); }
static { filterSpell.add(new CardTypePredicate(CardType.CREATURE)); filterSpell.add(new ConvertedManaCostPredicate(Filter.ComparisonType.GreaterThan, 4)); }
static { filter.add(new SubtypePredicate("Giant")); }
static { filter.add(new ColorPredicate(ObjectColor.GREEN)); }
static { filter.add(new DawnCharmPredicate()); }
static { filter.add(new CardTypePredicate(CardType.INSTANT)); }